Fix BASE_DIR

This commit is contained in:
Kron4ek 2021-05-04 20:46:18 +05:00 committed by GitHub
parent 1ced930714
commit 3f4543748a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -31,7 +31,7 @@ export working_dir=/tmp/"$(basename "${script}")"_"${USER}"_"${script_md5}"
# a problem with mounting the squashfs image due to an incorrectly calculated offset. # a problem with mounting the squashfs image due to an incorrectly calculated offset.
# The size of this script # The size of this script
scriptsize=16805 scriptsize=16811
# The size of the utils.tar archive # The size of the utils.tar archive
# utils.tar contains bwrap and squashfuse binaries # utils.tar contains bwrap and squashfuse binaries
@ -200,7 +200,7 @@ fi
if [ -n "${BASE_DIR}" ]; then if [ -n "${BASE_DIR}" ]; then
echo "Using custom BASE_DIR: ${BASE_DIR}" echo "Using custom BASE_DIR: ${BASE_DIR}"
export working_dir="${BASE_DIR}"/"$(basename "${script}")"_"${USER}"_${RANDOM} export working_dir="${BASE_DIR}"/"$(basename "${script}")"_"${USER}"_"${script_md5}"
fi fi
# Extract utils.tar # Extract utils.tar