From 1b6856b0c20105c1d8c66dd4cc5a89a1a151ca0c Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Thu, 9 Jun 2022 11:22:37 -0400 Subject: [PATCH] Build: Double quote variables to prevent splitting --- build_scripts/appimage/appimage.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build_scripts/appimage/appimage.sh b/build_scripts/appimage/appimage.sh index 2928b2d64..d61e11fb7 100755 --- a/build_scripts/appimage/appimage.sh +++ b/build_scripts/appimage/appimage.sh @@ -3,7 +3,7 @@ LINUXDEPLOY_URL="https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage" PYTHON_VERSION="3.7.13" PYTHON_APPIMAGE_URL="https://github.com/niess/python-appimage/releases/download/python3.7/python${PYTHON_VERSION}-cp37-cp37m-manylinux1_x86_64.AppImage" -APPIMAGE_DIR="$(realpath $(dirname $BASH_SOURCE[0]))" +APPIMAGE_DIR=$(realpath "$(dirname "$BASH_SOURCE[0]")") APPDIR="$APPIMAGE_DIR/squashfs-root" BUILD_DIR="$APPDIR/usr/src" @@ -30,7 +30,7 @@ setup_build_dir() { local deployment_type=$3 local is_release_build=$4 - pushd $APPIMAGE_DIR || handle_error + pushd "$APPIMAGE_DIR" || handle_error setup_python_37_appdir @@ -115,7 +115,7 @@ build_package() { --output appimage dst_name="InfectionMonkey-$version.AppImage" - move_package_to_dist_dir $dist_dir $dst_name + move_package_to_dist_dir "$dist_dir" "$dst_name" popd || handle_error }