Skip to content

Commit

Permalink
Update install.sh: Improve "restore" messages
Browse files Browse the repository at this point in the history
  • Loading branch information
EricClaeys authored Dec 29, 2024
1 parent 4790e0e commit 200f5a2
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2765,20 +2765,15 @@ do_restore()

if [[ -d ${RENAMED_DIR} ]]; then
MSG+="'${RENAMED_DIR}' already exists."
MSG+="\nDid you already restore Allsky?"
MSG+="\nDid you already restore Allsky?\n"
OK="false"
fi

if [[ ! -d ${ALLSKY_CONFIG} ]]; then
MSG+="Allsky isn't installed."
OK="false"
fi
if [[ ! -d ${PRIOR_ALLSKY_DIR} ]]; then
MSG+="no prior version exists in '${PRIOR_ALLSKY_DIR}'."
OK="false"
fi
if [[ -d ${RENAMED_DIR} ]]; then
MSG+="a restored version already exists in '${RENAMED_DIR}'."
elif [[ ! -d ${PRIOR_ALLSKY_DIR} ]]; then
MSG+="No prior version exists in '${PRIOR_ALLSKY_DIR}'."
OK="false"
fi
if [[ ${OK} == "false" ]]; then
Expand Down

0 comments on commit 200f5a2

Please sign in to comment.