diff options
| author | Party Wumpus <48649272+PartyWumpus@users.noreply.github.com> | 2023-03-20 22:17:12 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-20 22:17:12 +0000 |
| commit | 7abed7fcd9da5d1234e0d1b27feffd4d795f731e (patch) | |
| tree | 0f27320966f8d2887d328d308671b87f32e6e7a3 | |
| parent | 17740d066589cdc61167c46c83ec22650f09c6af (diff) | |
| download | decky-installer-7abed7fcd9da5d1234e0d1b27feffd4d795f731e.tar.gz decky-installer-7abed7fcd9da5d1234e0d1b27feffd4d795f731e.zip | |
Update user_install_script.sh
| -rw-r--r-- | gui/user_install_script.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gui/user_install_script.sh b/gui/user_install_script.sh index acc3c5d..046deb8 100644 --- a/gui/user_install_script.sh +++ b/gui/user_install_script.sh @@ -18,6 +18,13 @@ then exit fi +# check if github.com is reachable +if ! curl -Is https://github.com | head -1 | grep 200 > /dev/null +then + echo "Github appears to be unreachable, you may not be connected to the internet" + exit 1 +fi + # if the script is not root yet, get the password and rerun as root if (( $EUID != 0 )); then PASS_STATUS=$(passwd -S deck 2> /dev/null) |
