From d7a0032438482ebc0d30fff7e10adb6d883037a4 Mon Sep 17 00:00:00 2001 From: kay0u Date: Sun, 18 Aug 2019 19:54:06 +0200 Subject: [PATCH] SKIP if bool eq 0 --- scripts/backup | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/scripts/backup b/scripts/backup index 66ae3fd..c20f755 100644 --- a/scripts/backup +++ b/scripts/backup @@ -57,35 +57,35 @@ ynh_script_progression --message="Backuping of Gitlab..." --weight=9 to_skip="" -if [ $backup_db -eq 1 ]; then +if [ $backup_db -eq 0 ]; then to_skip="db,"$to_skip fi -if [ $backup_uploads -eq 1 ]; then +if [ $backup_uploads -eq 0 ]; then to_skip="uploads,"$to_skip fi -if [ $backup_repositories -eq 1 ]; then +if [ $backup_repositories -eq 0 ]; then to_skip="repositories,"$to_skip fi -if [ $backup_builds -eq 1 ]; then +if [ $backup_builds -eq 0 ]; then to_skip="builds,"$to_skip fi -if [ $backup_artifacts -eq 1 ]; then +if [ $backup_artifacts -eq 0 ]; then to_skip="artifacts,"$to_skip fi -if [ $backup_lfs -eq 1 ]; then +if [ $backup_lfs -eq 0 ]; then to_skip="lfs,"$to_skip fi -if [ $backup_registry -eq 1 ]; then +if [ $backup_registry -eq 0 ]; then to_skip="registry,"$to_skip fi -if [ $backup_pages -eq 1 ]; then +if [ $backup_pages -eq 0 ]; then to_skip="pages,"$to_skip fi