Handle too many arguments

This commit is contained in:
RealStickman 2021-03-08 09:11:16 +01:00
parent 18d4948a12
commit 4965db0254

View File

@ -61,6 +61,9 @@ if [[ "$#" -eq 1 ]]; then
echo "-h, --help Show help menu"
echo "-t, --theme Show theme selection screen"
fi
elif [[ "$#" -gt 1 ]]; then
echo "Too many arguments"
exit 1
fi
#delete previous backups