18870: Commits stuff
[arvados.git] / tools / salt-install / installer.sh
index 4d601d9bf906b16d9a954cd9eccf86f1533c7084..a943fff6a7bcc60b2bb114c4ebac304d23688a0c 100755 (executable)
@@ -64,8 +64,12 @@ case "$subcmd" in
 
        source ${CONFIG_FILE}
 
+       set -x
+
        git add -A
-       git commit -m"prepare for deploy"
+       if ! git diff --exit-code ; then
+           git commit -m"prepare for deploy"
+       fi
        for NODE in "${!NODES[@]}"
        do
            if test $NODE = localhost ; then