From 14298fad930049e0a2b52b96e67434c60a54eee9 Mon Sep 17 00:00:00 2001 From: garhve Date: Thu, 1 Aug 2024 02:10:34 +0800 Subject: fix prompt issue --- mkproj.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mkproj.sh b/mkproj.sh index 0cd1048..f557517 100755 --- a/mkproj.sh +++ b/mkproj.sh @@ -8,9 +8,9 @@ # only works for bash shell ###################################################################### -host="ssh ip" -port=" -p 'port'" -user="user name" +host="45.79.85.77" +port=" -p 13089" +user="pico" run() { #!/usr/bin/env sh @@ -86,7 +86,7 @@ run() { [ "$?" -ne 0 ] && echo -e "failed creating ${BLUE}$work/$repo${NC}, please check permission" || echo -e "${YELLOW}creation finished${NC}" fi - echo -e "you may now add remote with ${RED}git remote --add origin ssh://user@ip:port$path/$repo$NC command." + echo -e "you may now add remote with ${RED}git remote add origin ssh://user@ip:port$path/$repo$NC command." } ssh -t ${user}@${host}${port} "$(typeset -f run); run" -- cgit v1.2.3-70-g09d2