From 79c7ba7615bc63a2acce648a8c18d8a976af102e Mon Sep 17 00:00:00 2001 From: Maniack Crudelis Date: Thu, 22 Feb 2018 11:52:55 +0100 Subject: [PATCH] Indentation fix... --- data/helpers.d/utils | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/data/helpers.d/utils b/data/helpers.d/utils index d39bb78f5..81a76fdf3 100644 --- a/data/helpers.d/utils +++ b/data/helpers.d/utils @@ -38,10 +38,10 @@ ynh_restore_upgradebackup () { echo "Upgrade failed." >&2 local app_bck=${app//_/-} # Replace all '_' by '-' - NO_BACKUP_UPGRADE=${NO_BACKUP_UPGRADE:-0} + NO_BACKUP_UPGRADE=${NO_BACKUP_UPGRADE:-0} - if [ "$NO_BACKUP_UPGRADE" -eq 0 ] - then + if [ "$NO_BACKUP_UPGRADE" -eq 0 ] + then # Check if an existing backup can be found before removing and restoring the application. if sudo yunohost backup list | grep -q $app_bck-pre-upgrade$backup_number then @@ -51,9 +51,9 @@ ynh_restore_upgradebackup () { sudo yunohost backup restore --ignore-system $app_bck-pre-upgrade$backup_number --apps $app --force --verbose ynh_die "The app was restored to the way it was before the failed upgrade." fi - else - echo "\$NO_BACKUP_UPGRADE is set, that means there's no backup to restore. You have to fix this upgrade by yourself !" >&2 - fi + else + echo "\$NO_BACKUP_UPGRADE is set, that means there's no backup to restore. You have to fix this upgrade by yourself !" >&2 + fi } # Make a backup in case of failed upgrade