Skip to content

Commit 0785d9e

Browse files
cfriedtstephanosio
authored andcommitted
contrib: linux_build_toolchain: quote EOF and correct sdk var
* Display the default SDK directory with the SDK_DIR var * Use quoted 'EOF' to avoid escaping $ and { in heredoc Signed-off-by: Chris Friedt <cfriedt@meta.com>
1 parent f586856 commit 0785d9e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

contrib/linux_build_toolchain.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function usage()
1818
echo " -c Name of config file (without extension .config)"
1919
echo ""
2020
echo " -s SDK directory. Optional."
21-
echo " Default is ${GITHUB_WORKSPACE}"
21+
echo " Default is ${SDK_DIR}"
2222
echo ""
2323
echo " -o Build directory, for building artifacts and final output. Optional."
2424
echo " Default is ${WORKSPACE}"
@@ -110,10 +110,10 @@ pushd "${BUILD_DIR}" || exit 1
110110

111111
cat "${GITHUB_WORKSPACE}"/configs/common.config "${SDK_CONFIG_FILE}" > .config
112112

113-
cat <<EOF >> .config
113+
cat << 'EOF' >> .config
114114
CT_SHOW_CT_VERSION=n
115-
CT_LOCAL_TARBALLS_DIR="\$\{WORKSPACE\}/sources"
116-
CT_OVERLAY_LOCATION="\$\{GITHUB_WORKSPACE\}/overlays"
115+
CT_LOCAL_TARBALLS_DIR="${WORKSPACE}/sources"
116+
CT_OVERLAY_LOCATION="${GITHUB_WORKSPACE}/overlays"
117117
CT_LOG_PROGRESS_BAR=n
118118
CT_LOG_EXTRA=y
119119
CT_LOG_LEVEL_MAX="EXTRA"

0 commit comments

Comments
 (0)