18870: Commits stuff
authorPeter Amstutz <peter.amstutz@curii.com>
Sun, 26 Jun 2022 23:24:27 +0000 (19:24 -0400)
committerPeter Amstutz <peter.amstutz@curii.com>
Tue, 28 Jun 2022 18:20:35 +0000 (14:20 -0400)
Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz@curii.com>

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