Save default SAVEDIR if answer is "".

This commit is contained in:
tastytea 2019-02-24 12:47:03 +01:00
parent 4762d7c8de
commit 59cbd14881
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07

View File

@ -124,6 +124,7 @@ else
echo -n "Where should backup file and digestfile be stored? [/var/lib/hashboot] "
read -r SAVEDIR
[ -z "${SAVEDIR}" ] && SAVEDIR="/var/lib/hashboot"
echo "#Where the Backup files are stored" >> ${CONFIG_FILE}
echo "SAVEDIR=${SAVEDIR}" >> ${CONFIG_FILE}
DIGEST_FILE="${SAVEDIR}/hashboot.digest"