diff --git a/scripts/setup.sh b/scripts/setup.sh index 0af6c95c..a503bdca 100755 --- a/scripts/setup.sh +++ b/scripts/setup.sh @@ -12,7 +12,7 @@ rm -rf $INJECTIVE_DIR mkdir $CORE_DIR mkdir $INJECTIVE_DIR -if [ -f "$GH_CORE_USER" ] && [ -f "$GH_CORE_TOKEN" ]; then +if [ "$GH_CORE_USER" ] && [ "$GH_CORE_TOKEN" ]; then git clone https://$GH_CORE_USER:$GH_CORE_TOKEN@github.com/InjectiveLabs/injective-core.git $BUILD_DIR/injective-core -b $injective_core_branch --depth 1 --single-branch > /dev/null else git clone https://github.com/InjectiveLabs/injective-core.git $BUILD_DIR/injective-core -b $injective_core_branch --depth 1 --single-branch > /dev/null