Notify when autostarting and autoargs are working

This commit is contained in:
Kron4ek 2021-03-28 16:54:13 +05:00 committed by GitHub
parent 1a98848008
commit 3ec5442180
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -26,7 +26,7 @@ working_dir=/tmp/"$(basename "${script}")"_"$(id -un)"_$RANDOM
# a problem with mounting the squashfs image due to an incorrectly calculated offset.
# The size of this script
scriptsize=5358
scriptsize=5483
# The size of the utils.tar archive
# utils.tar contains bwrap and squashfuse binaries
@ -167,8 +167,13 @@ if [ $? = 0 ]; then
autostart="${script_name}"
fi
fi
if [ -n "${AUTOARGS}" ]; then
echo "Automatically append arguments: ${AUTOARGS}"
fi
if [ -n "${autostart}" ]; then
echo "Autostarting ${autostart}"
run_bwrap "${autostart}" "$@" ${AUTOARGS}
else
run_bwrap "$@" ${AUTOARGS}