Selaa lähdekoodia

Fix set up script bug

`sh` does not know of the compound conditional syntax.
Weiyi Lou 10 vuotta sitten
vanhempi
commit
6b35989c67
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      setup.sh

+ 1 - 1
setup.sh

@@ -19,7 +19,7 @@ mkdir "$backup_dir"
 
 # Backup a given file.
 backup() {
-  [[ -e "$1" ]] && mv "$1" "$backup_dir"
+  [ -e "$1" ] && mv "$1" "$backup_dir"
 }
 
 # Create links after backing up.