From be6c4dc6dfec2117b7d1905944d93195709f1a3f Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sat, 10 Jul 2021 15:38:19 -0400 Subject: [PATCH] fix: correct shfmt and shellcheck warnings --- tests/apps/python/cnb/1/bin/build | 12 +++++++----- tests/apps/python/cnb/2/bin/build | 12 +++++++----- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/tests/apps/python/cnb/1/bin/build b/tests/apps/python/cnb/1/bin/build index 93a8d56ae..cd76d5ea9 100755 --- a/tests/apps/python/cnb/1/bin/build +++ b/tests/apps/python/cnb/1/bin/build @@ -7,9 +7,11 @@ bp_layer=$layers_dir/1 bp_env_dir=$bp_layer/env mkdir -p $bp_env_dir -echo "TESTENV_1" > $bp_env_dir/TESTENV +echo "TESTENV_1" >$bp_env_dir/TESTENV -echo "[types]" > ${bp_layer}.toml -echo "launch = true" >> ${bp_layer}.toml -echo "build = true" >> ${bp_layer}.toml -echo "cache = true" >> ${bp_layer}.toml +{ + echo "[types] + echo "launch = true" + echo "build = true" + echo "cache = true" +} >"${bp_layer}.toml" diff --git a/tests/apps/python/cnb/2/bin/build b/tests/apps/python/cnb/2/bin/build index 7de333ff7..96abf03de 100755 --- a/tests/apps/python/cnb/2/bin/build +++ b/tests/apps/python/cnb/2/bin/build @@ -13,9 +13,11 @@ echo "===> env start" env echo "===> env end" -echo "TESTENV_2" > $bp_env_dir/TESTENV +echo "TESTENV_2" >$bp_env_dir/TESTENV -echo "[types]" > ${bp_layer}.toml -echo "launch = true" >> ${bp_layer}.toml -echo "build = true" >> ${bp_layer}.toml -echo "cache = true" >> ${bp_layer}.toml +{ + echo "[types] + echo "launch = true" + echo "build = true" + echo "cache = true" +} >"${bp_layer}.toml"