summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgarhve <git@garhve.com>2024-08-01 02:10:34 +0800
committergarhve <git@garhve.com>2024-08-01 02:10:34 +0800
commit14298fad930049e0a2b52b96e67434c60a54eee9 (patch)
treea42a2456407842742a48d38435dfa028633bbdfe
parenteca5c99563e35226963a78fd9add694b0c030c19 (diff)
fix prompt issue
-rwxr-xr-xmkproj.sh8
1 files 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"