From af228053e0f6fe37bb0680df4f34ae75b9c9bd3a Mon Sep 17 00:00:00 2001 From: Kron4ek Date: Wed, 31 May 2023 13:33:33 +0500 Subject: [PATCH] Fix executing Conty from PATH This was broken in the latest release. --- conty-start.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/conty-start.sh b/conty-start.sh index 469844c..8edde2d 100755 --- a/conty-start.sh +++ b/conty-start.sh @@ -15,7 +15,7 @@ if (( EUID == 0 )) && [ -z "$ALLOW_ROOT" ]; then fi # Conty version -script_version="1.24" +script_version="1.24.1" # Important variables to manually adjust after modification! # Needed to avoid problems with mounting due to an incorrect offset. @@ -24,7 +24,7 @@ script_version="1.24" # size to 0 init_size=40000 bash_size=1339208 -script_size=35842 +script_size=35959 busybox_size=1161112 utils_size=4049807 @@ -33,6 +33,10 @@ if [ -n "${BASH_SOURCE[0]}" ]; then script_literal="${BASH_SOURCE[0]}" else script_literal="${0}" + + if [ "${script_literal}" = "$(basename "${script_literal}")" ]; then + script_literal="$(command -v "${0}")" + fi fi script_name="$(basename "${script_literal}")" script="$(readlink -f "${script_literal}")"