Browse Source

Add another check.

Joe Clarke 1 year ago
parent
commit
b3e204f47f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      www/export_deadman.php

+ 1 - 1
www/export_deadman.php

@@ -233,7 +233,7 @@ HEADER;
 
 exec("cd $GIT_HOME && GIT_SSH_COMMAND='ssh -i $GIT_HOME/../../.ssh/id_rsa -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no' /usr/local/bin/git commit -m 'Update switch targets from ZTP' $YAML_FILE", $output, $result);
 if ($result != 0) {
-    if ($output[0] != "Your branch is up to date") {
+    if ($output[0] != "Your branch is up to date" && $output[0] != "Already up to date.") {
         if (!$is_script) {
             echo "<p><font color=\"red\">Error committing changes to git:</p>\r\n";
             echo "<pre>\r\n";