Update bootstrap-linux.sh

This commit is contained in:
Andrei Jiroh Eugenio Halili 2021-02-20 23:00:56 +08:00 committed by GitHub
parent d7c39177f2
commit 13f0b57c4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 5 deletions

View File

@ -5,12 +5,18 @@ echo "Bootstrap Script for Linix by Andrei Jiroh"
echo "Starting up in 3 seconds..."
sleep 3
echo "==> Prompt ahead: Enter your GitLab Auth tokens"
read -p "Your username: " GH_USERNAME
read -sp "Your GitLab.com PAT: " GH_PAT
echo "==> Checking for GitLab Auth tokens in env..."
if [[ $GH_PAT == "" ]] && [[ $GH_USERNAME == "" ]];
echo "GH_USERNAME and GH_PAT can't be blank!"
exit 1
elif [[ $GH_USERNAME != "AndreiJirohHaliliDev2006" ]]; then
echo "Only Andrei Jiroh can do this!"
exit 1
elif [[ $GH_USERNAME == "AndreiJirohHaliliDev2006" ]] && [[ $GH_PAT != "" ]]; then
echo "Missing GitLab.com PAT!"
exit 1
fi
if echo $OSTYPE | grep linux-android.*; then
# Assuming that you ibstalled wget and curl
echo "==> Installing dependencies..."