|
@@ -54,8 +54,9 @@ usage() {
|
|
# Set the variable for synchronisation option, see above
|
|
# Set the variable for synchronisation option, see above
|
|
syncopt="remove"
|
|
syncopt="remove"
|
|
|
|
|
|
-if test $(gin remotes) ;
|
|
|
|
- then
|
|
|
|
|
|
+
|
|
|
|
+if ! gin remotes; then
|
|
|
|
+ echo "set gin remote"
|
|
# set gin remote from git information (on the hu server)
|
|
# set gin remote from git information (on the hu server)
|
|
remotegit=$(git remote get-url origin)
|
|
remotegit=$(git remote get-url origin)
|
|
remotegin="$(echo "$remotegit" | cut -d'/' -f4,5)"
|
|
remotegin="$(echo "$remotegit" | cut -d'/' -f4,5)"
|
|
@@ -63,13 +64,12 @@ if test $(gin remotes) ;
|
|
remotegin="$(echo $remotegin | cut -d' ' -f1)"
|
|
remotegin="$(echo $remotegin | cut -d' ' -f1)"
|
|
remotegin="$(echo "hu:""${remotegin/.git}")"
|
|
remotegin="$(echo "hu:""${remotegin/.git}")"
|
|
gin add-remote primary "$remotegin"
|
|
gin add-remote primary "$remotegin"
|
|
|
|
+else
|
|
|
|
+ echo gin remote set
|
|
fi
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
echo "start synchronisation in "$syncopt" mode, close window to cancel. change mode by changing the code in a text application"
|
|
echo "start synchronisation in "$syncopt" mode, close window to cancel. change mode by changing the code in a text application"
|
|
sh .scripts/GIN-SYNC
|
|
sh .scripts/GIN-SYNC
|
|
|
|
|