restore: display appropriate message when no backup is selected

This commit is contained in:
Sameer Naik 2015-12-28 21:04:24 +05:30
parent 74fef65abb
commit 050960b20e

View File

@ -1126,6 +1126,12 @@ execute_raketask() {
echo
read -p "Select a backup to restore: " file
if [[ -z ${file} ]]; then
echo "Backup not specified. Exiting..."
return 1
fi
if [[ ! -f ${GITLAB_BACKUP_DIR}/${file} ]]; then
echo "Specified backup does not exist. Aborting..."
return 1