From 8a14d366ef6fcd2e5b0a9eb86763960c578260a2 Mon Sep 17 00:00:00 2001 From: Clayton Craft Date: Fri, 17 Dec 2021 13:01:31 -0800 Subject: [PATCH] helpers/envkernel.sh: fix shellcheck failure (MR 2151) A recent update to shellcheck made this line start failing: In ./helpers/envkernel.sh line 59: export pmbootstrap_dir=$(realpath "$script_dir/..") ^--------------------------^ SC2046 (warning): Quote this to prevent word splitting. --- helpers/envkernel.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpers/envkernel.sh b/helpers/envkernel.sh index 19884d01..0228760e 100644 --- a/helpers/envkernel.sh +++ b/helpers/envkernel.sh @@ -56,7 +56,7 @@ export_pmbootstrap_dir() { # Fail with debug information # shellcheck disable=SC2155 - export pmbootstrap_dir=$(realpath "$script_dir/..") + export pmbootstrap_dir="$(realpath "$script_dir/..")" if ! [ -e "$pmbootstrap_dir/pmbootstrap.py" ]; then echo "ERROR: Failed to get the script's location with your shell." echo "Please adjust export_pmbootstrap_dir in envkernel.sh. Debug info:"