Skip to content

Commit

Permalink
Small fix in export.sh script
Browse files Browse the repository at this point in the history
  • Loading branch information
CodingContraption committed Jan 27, 2025
1 parent b2da761 commit 365f53c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions validator/imported/export.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ GIT_REF=origin/main
if [[ -f "$EXPORTER_ROOT/graphql-js-commit.log" ]] ; then
GIT_REF=$(cat "$EXPORTER_ROOT/graphql-js-commit.log")
fi
echo $GIT_REF
echo "$GIT_REF"

if [[ -d "$REPO_DIR" ]] ; then
echo "fetching graphql-js with ${GIT_REF}"
cd "$REPO_DIR" || exit
git fetch origin master
git fetch origin main
git checkout "$GIT_REF"
git reset --hard
else
Expand All @@ -24,7 +24,7 @@ else
cd "$REPO_DIR" || exit
git checkout "$GIT_REF"
fi
git rev-parse HEAD > $EXPORTER_ROOT/graphql-js-commit.log
git rev-parse HEAD > "$EXPORTER_ROOT/graphql-js-commit.log"

cd "$EXPORTER_ROOT" || exit

Expand Down

0 comments on commit 365f53c

Please sign in to comment.