summarylogtreecommitdiffstats
path: root/update_aur.sh
diff options
context:
space:
mode:
authorJan Metzger2019-04-02 22:48:43 +0200
committerJan Metzger2019-04-02 22:48:43 +0200
commite71e8137e8280fd2cac417a3a743e8934709cfb4 (patch)
treece6e84834763ab4d997a035c2cd12f3a6a5fe43f /update_aur.sh
parent45a31fce7a75f0a92dbaa348baab747f9b19d10c (diff)
downloadaur-e71e8137e8280fd2cac417a3a743e8934709cfb4.tar.gz
Added jq dependency, version bump
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