fix: Exit if not enough args

This commit is contained in:
Sayantan Santra 2023-07-23 18:13:10 -05:00
parent 0edf426e62
commit 325bbd8c6e
Signed by: SinTan1729
GPG Key ID: EB3E68BFBA25C85F
1 changed files with 1 additions and 0 deletions

View File

@ -8,6 +8,7 @@
if [ "$#" -ne 2 ]; then
echo "Invalid syntax!"
echo "Use the following syntax: update-aur-lure.sh <package-name> <new-version>"
exit -1
fi
# xdg-user-dirs is used to get the directory for the repos