fix npe-like-error

This commit is contained in:
fabian 2024-09-01 14:46:44 +02:00
parent 0d7c1902c1
commit ae2779f48e

View File

@ -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