mirror of
https://github.com/sameersbn/docker-gitlab.git
synced 2026-01-18 13:58:25 +00:00
restore: display appropriate message when no backup is selected
This commit is contained in:
parent
74fef65abb
commit
050960b20e
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user