diff options
author | garhve <git@garhve.com> | 2024-08-01 02:10:34 +0800 |
---|---|---|
committer | garhve <git@garhve.com> | 2024-08-01 02:10:34 +0800 |
commit | 14298fad930049e0a2b52b96e67434c60a54eee9 (patch) | |
tree | a42a2456407842742a48d38435dfa028633bbdfe /mkproj.sh | |
parent | eca5c99563e35226963a78fd9add694b0c030c19 (diff) |
fix prompt issue
Diffstat (limited to 'mkproj.sh')
-rwxr-xr-x | mkproj.sh | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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" |