diff --git a/installers/common.sh b/installers/common.sh index b94da1a6..b547c2a3 100755 --- a/installers/common.sh +++ b/installers/common.sh @@ -213,7 +213,7 @@ function check_for_old_configs() { fi for file in /etc/systemd/network/raspap-*.net*; do - if [-f "${file}" ]; then + if [ -f "${file}" ]; then filename = $(basename $file) sudo cp "$file" "${raspap_dir}/backups/${filename}.`date +%F-%R`" sudo ln -sf "${raspap_dir}/backups/${filename}.`date +%F-%R`" "${raspap_dir}/backups/${filename}"