chore(bootstrap): update repo links and stuff
This commit is contained in:
parent
dc0aa97052
commit
0d7e697873
|
@ -77,7 +77,7 @@ installDeps() {
|
|||
cloneRepo() {
|
||||
if [ ! -d "$HOME/.dotfiles" ]; then
|
||||
echoStageName "Cloning the dotfiles repo"
|
||||
git clone https://github.com/AndreiJirohHaliliDev2006/dotfiles.git $HOME/.dotfiles
|
||||
git clone https://github.com/ajhalili2006/dotfiles.git $HOME/.dotfiles
|
||||
else
|
||||
echoStageName "Dotfiles repo found, pulling remote changes instead"
|
||||
git -C "$HOME/.dotfiles" fetch --all
|
||||
|
@ -88,14 +88,14 @@ cloneRepo() {
|
|||
if [[ $GITLAB_TOKEN == "" ]] && [[ $GITLAB_LOGIN == "" ]]; then
|
||||
error "GitLab login and token can't be blank!" && exit 1
|
||||
# Probably change my GitLab SaaS username with yours
|
||||
elif [[ $GITLAB_LOGIN != "AndreiJirohHaliliDev2006" ]]; then
|
||||
elif [[ $GITLAB_LOGIN != "ajhalili2006" ]]; then
|
||||
error "Only Andrei Jiroh can do this!" && exit 1
|
||||
elif [[ $GITLAB_LOGIN == "AndreiJirohHaliliDev2006" ]] && [[ $GITLAB_TOKEN == "" ]]; then
|
||||
elif [[ $GITLAB_LOGIN == "ajhalili2006" ]] && [[ $GITLAB_TOKEN == "" ]]; then
|
||||
error "Missing GitLab SaaS PAT! Check your Bitwarden vault for that key." && exit 1
|
||||
fi
|
||||
if [ ! -d "$HOME/.dotfiles/secrets" ]; then
|
||||
echoStageName "Cloning secrets repo"
|
||||
git clone https://$GITLAB_LOGIN:$GITLAB_TOKEN@gitlab.com/AndreiJirohHaliliDev2006/dotfiles-secrets $HOME/.dotfiles/secrets
|
||||
git clone https://$GITLAB_LOGIN:$GITLAB_TOKEN@gitlab.com/ajhalili2006/dotfiles-secrets $HOME/.dotfiles/secrets
|
||||
[ $? != "0" ] && echo "error: That kinda sus, but either only Andrei Jiroh can proceed or maybe the PAT you used is invalid." && exit 1
|
||||
chmod 600 $HOME/.dotfiles/secrets/{ssh,pgp}
|
||||
sleep 5
|
||||
|
|
Loading…
Reference in New Issue