summaryrefslogtreecommitdiff
path: root/local/bin/aurtest.sh
diff options
context:
space:
mode:
Diffstat (limited to 'local/bin/aurtest.sh')
-rwxr-xr-xlocal/bin/aurtest.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/local/bin/aurtest.sh b/local/bin/aurtest.sh
new file mode 100755
index 0000000..d26ca37
--- /dev/null
+++ b/local/bin/aurtest.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+AUR_URL="https://aur.archlinux.org"
+TIMEOUT=5
+
+if curl -s --head --fail --max-time "$TIMEOUT" "$AUR_URL" > /dev/null; then
+ echo "Unfortunately, the AUR is up."
+else
+ echo "AUR IS DOWN"
+fi