summarylogtreecommitdiffstats
path: root/update_aur.sh
diff options
context:
space:
mode:
Diffstat (limited to 'update_aur.sh')
-rwxr-xr-xupdate_aur.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/update_aur.sh b/update_aur.sh
index 4e59c1d21dab..f428bdfffa1a 100755
--- a/update_aur.sh
+++ b/update_aur.sh
@@ -1,12 +1,12 @@
#!/usr/bin/env bash
-AUR_REPO="$1"
-if [ -n "$AUR_REPO" ]; then
- cd "$AUR_REPO"
+# Change to the AUR repo
+if [ -n "$1" ]; then
+ cd "$1"
fi
if [ ! -d ".git" ]; then
- echo "Not a repository!"
+ echo "Not a git repository!"
exit 1
fi