From ae2779f48e20a6e27ce824cce38a6b8625605712 Mon Sep 17 00:00:00 2001 From: fabian Date: Sun, 1 Sep 2024 14:46:44 +0200 Subject: [PATCH] fix npe-like-error --- scripts/backup_edi.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/backup_edi.sh b/scripts/backup_edi.sh index adee0e9..42d8ee2 100755 --- a/scripts/backup_edi.sh +++ b/scripts/backup_edi.sh @@ -32,7 +32,7 @@ backupRootDirectory /etc/docker/daemon.json $BACKUP_DIR_ROOT/docker/ ### upload backup ### ##################### -if [[ "$1" == "--noupload" ]]; then +if [[ $# > 0 && "$1" == "--noupload" ]]; then exit 0; fi