Skip to content

Commit

Permalink
(bootstrap) no escaping needed in echo's
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthijsBurgh committed Feb 3, 2024
1 parent 6df64d7 commit 9ff9f5f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions installer/bootstrap.bash
Original file line number Diff line number Diff line change
Expand Up @@ -175,19 +175,19 @@ function main
then
if [[ -n "${BRANCH}" ]]
then
echo -e "[tue-env](bootstrap) Cloning tue-env repository with branch: ${BRANCH} at commit: ${COMMIT}"
echo "[tue-env](bootstrap) Cloning tue-env repository with branch: ${BRANCH} at commit: ${COMMIT}"
git clone -q --single-branch --branch "${BRANCH}" "${env_url}" "${env_dir}"
else
echo -e "[tue-env](bootstrap) Cloning tue-env repository with default branch at commit: ${COMMIT}"
echo "[tue-env](bootstrap) Cloning tue-env repository with default branch at commit: ${COMMIT}"
git clone -q --single-branch "${env_url}" "${env_dir}"
fi
git -C "${env_dir}" reset --hard "${COMMIT}"
else
echo -e "[tue-env](bootstrap) Error! CI branch or commit is unset"
echo "[tue-env](bootstrap) Error! CI branch or commit is unset"
return 1
fi
else
echo -e "[tue-env](bootstrap) Testing Pull Request"
echo "[tue-env](bootstrap) Testing Pull Request"
[[ -z "${REF_NAME}" ]] && { echo "[tue-env](bootstrap) Error! Environment variable REF_NAME is not set."; return 1; }

git clone -q --depth=10 "${env_url}" "${env_dir}"
Expand All @@ -196,7 +196,7 @@ function main
fi
else
# Update installer
echo -e "[tue-env](bootstrap) Cloning tue-env repository"
echo "[tue-env](bootstrap) Cloning tue-env repository"
git clone "${env_url}" "${env_dir}"
fi

Expand Down

0 comments on commit 9ff9f5f

Please sign in to comment.