1
0
Fork 0
mirror of https://github.com/SinTan1729/random.git synced 2024-12-26 13:18:35 -06:00

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

View file

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