mirror of
https://github.com/Kron4ek/Conty
synced 2024-12-26 09:58:38 +01:00
Fix executing Conty from PATH
This was broken in the latest release.
This commit is contained in:
parent
95f0c4a7f6
commit
af228053e0
1 changed files with 6 additions and 2 deletions
|
@ -15,7 +15,7 @@ if (( EUID == 0 )) && [ -z "$ALLOW_ROOT" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Conty version
|
# Conty version
|
||||||
script_version="1.24"
|
script_version="1.24.1"
|
||||||
|
|
||||||
# Important variables to manually adjust after modification!
|
# Important variables to manually adjust after modification!
|
||||||
# Needed to avoid problems with mounting due to an incorrect offset.
|
# Needed to avoid problems with mounting due to an incorrect offset.
|
||||||
|
@ -24,7 +24,7 @@ script_version="1.24"
|
||||||
# size to 0
|
# size to 0
|
||||||
init_size=40000
|
init_size=40000
|
||||||
bash_size=1339208
|
bash_size=1339208
|
||||||
script_size=35842
|
script_size=35959
|
||||||
busybox_size=1161112
|
busybox_size=1161112
|
||||||
utils_size=4049807
|
utils_size=4049807
|
||||||
|
|
||||||
|
@ -33,6 +33,10 @@ if [ -n "${BASH_SOURCE[0]}" ]; then
|
||||||
script_literal="${BASH_SOURCE[0]}"
|
script_literal="${BASH_SOURCE[0]}"
|
||||||
else
|
else
|
||||||
script_literal="${0}"
|
script_literal="${0}"
|
||||||
|
|
||||||
|
if [ "${script_literal}" = "$(basename "${script_literal}")" ]; then
|
||||||
|
script_literal="$(command -v "${0}")"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
script_name="$(basename "${script_literal}")"
|
script_name="$(basename "${script_literal}")"
|
||||||
script="$(readlink -f "${script_literal}")"
|
script="$(readlink -f "${script_literal}")"
|
||||||
|
|
Loading…
Reference in a new issue