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