Build: Double quote variables to prevent splitting

This commit is contained in:
Mike Salvatore 2022-06-09 11:22:37 -04:00
parent f7ad99f592
commit 1b6856b0c2
1 changed files with 3 additions and 3 deletions

View File

@ -3,7 +3,7 @@
LINUXDEPLOY_URL="https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage" LINUXDEPLOY_URL="https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage"
PYTHON_VERSION="3.7.13" 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" 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" APPDIR="$APPIMAGE_DIR/squashfs-root"
BUILD_DIR="$APPDIR/usr/src" BUILD_DIR="$APPDIR/usr/src"
@ -30,7 +30,7 @@ setup_build_dir() {
local deployment_type=$3 local deployment_type=$3
local is_release_build=$4 local is_release_build=$4
pushd $APPIMAGE_DIR || handle_error pushd "$APPIMAGE_DIR" || handle_error
setup_python_37_appdir setup_python_37_appdir
@ -115,7 +115,7 @@ build_package() {
--output appimage --output appimage
dst_name="InfectionMonkey-$version.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 popd || handle_error
} }