Sfoglia il codice sorgente

Only wait for key on fail

Bob Mottram 9 anni fa
parent
commit
94857a327e
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. 3
    1
      src/freedombone-controlpanel

+ 3
- 1
src/freedombone-controlpanel Vedi File

@@ -186,7 +186,9 @@ function configure_remote_backups {
186 186
         return
187 187
     fi
188 188
     ${PROJECT_NAME}-remote -u $ADMIN_USER
189
-    any_key
189
+    if [ ! "$?" = "0" ]; then
190
+        any_key
191
+    fi
190 192
 }
191 193
 
192 194
 function change_password {