We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b9f47b commit cb913c7Copy full SHA for cb913c7
AM-INSTALLER
100644
100755
@@ -21,6 +21,16 @@ _check_dependency() {
21
22
_check_dependency
23
24
+# Function to check online connections (uses github.com by default, as the database and CLI itself are stored/hosted there)
25
+_online_check() {
26
+ if ! wget -q --tries=3 --timeout=10 --spider https://github.com; then
27
+ printf "\n Installer wouldn't work offline\n\n Please check your internet connection and try again\n\n"
28
+ exit 1
29
+ fi
30
+}
31
+
32
+_online_check
33
34
# INSTALL "AM" SYSTEM-WIDE
35
_install_am() {
36
CACHEDIR="${XDG_CACHE_HOME:-$HOME/.cache}"
0 commit comments