fixed issue preventing cloning repo's from other owners.

This commit is contained in:
Josh Ashton
2023-06-13 21:13:06 -06:00
parent d6a236f8e4
commit a3d3acf0ed
-4
View File
@@ -51,12 +51,8 @@ elif [[ $1 == "--set-default" ]]; then
# Clone a git repo from a specified owner. # Clone a git repo from a specified owner.
elif [[ $1 =~ "/" ]]; then elif [[ $1 =~ "/" ]]; then
git clone https://github.com/$1 git clone https://github.com/$1
REPO=`cut $1 -d "/" -f 2`
# Clone a git repo from the owner. By default, this will be the owner quaxlyqueen. # Clone a git repo from the owner. By default, this will be the owner quaxlyqueen.
else else
git clone https://github.com/$DEFAULT_USER/$1 git clone https://github.com/$DEFAULT_USER/$1
REPO=$1
fi fi
cd $REPO