From 076c91ffdb0df5fe4986e35977daf13fde5acace Mon Sep 17 00:00:00 2001 From: Kron4ek Date: Wed, 19 May 2021 13:23:31 +0500 Subject: [PATCH] Remove fmount variable --- conty-start.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/conty-start.sh b/conty-start.sh index 33a003f..87a656b 100755 --- a/conty-start.sh +++ b/conty-start.sh @@ -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. # The size of this script -scriptsize=18001 +scriptsize=17976 # The size of the utils.tar archive # utils.tar contains bwrap and squashfuse binaries @@ -227,8 +227,6 @@ fi if [ -z "${SUDO_MOUNT}" ] && ! command -v fusermount 1>/dev/null; then echo "Please install fuse2 and run the script again!" exit 1 -else - fmount=fusermount fi if [ -n "${BASE_DIR}" ]; then @@ -454,7 +452,7 @@ trap_exit () { rm -f "${working_dir}"/running_"${script_id}" if [ ! "$(ls "${working_dir}"/running_* 2>/dev/null)" ]; then - "${fmount}" -uz "${working_dir}"/mnt 2>/dev/null || \ + fusermount -uz "${working_dir}"/mnt 2>/dev/null || \ ${use_sudo} umount --lazy "${working_dir}"/mnt 2>/dev/null rm -rf "${working_dir}"