diff --git a/sos-git.sh b/sos-git.sh index 8efb0c8..fdfcdad 100755 --- a/sos-git.sh +++ b/sos-git.sh @@ -1,4 +1,7 @@ #!/bin/bash +function setConstant() { + export "SOSGIT_VERSION=13" +} function getDefaultConfiguration() { # SOSGIT_CONFIGVERSION=5 # # sos-git configuration\n @@ -282,6 +285,7 @@ loadUserConfiguration doSystemSetup doUserSetup doRepositorySetup +setConstant function translateRepo() { export "SOSGIT_EXITSTRING=${SOSGIT_REPOS}/$1" } @@ -406,6 +410,7 @@ elif [ "$1" == "help" ]; then echo " remrepo " echo " selfupdate" echo " upstream " + echo " version" exit 0 elif [ "$1" == "helpextend" ]; then echo " [optional]" @@ -427,6 +432,7 @@ elif [ "$1" == "helpextend" ]; then echo "remrepo | | remove a cloned repository" echo "selfupdate | | update sos-git" echo "upstream | | push new changes and set branch upstream" + echo "version | | returns version string" elif [ "$1" == "build" ]; then if [ "$2" == "" ]; then argumentMissing @@ -635,6 +641,9 @@ elif [ "$1" == "history" ]; then else noRepoFound "$2" fi +elif [ "$1" == "version" ]; then + echo "sos-git $SOSGIT_VERSION" + echo "config $SOSGIT_CONFIGVERSION" else argumentMissing fi