Better folder detection in helper.sh
This way the user could symlink the helper.sh script to something like /usr/bin/ and have it in the path which allows to just call "helper.sh" everywhere in the shell.
This commit is contained in:
parent
2f2ace9ee4
commit
a82fe339ef
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@
|
|||
set -e
|
||||
clear
|
||||
|
||||
HELPER_SCRIPT_FOLDER="$( cd "$( dirname "${0}" )" && pwd )"
|
||||
HELPER_SCRIPT_FOLDER="$(dirname "$(readlink -f "$0")")"
|
||||
for script in "${HELPER_SCRIPT_FOLDER}/scripts/"*.sh; do . "${script}"; done
|
||||
for script in "${HELPER_SCRIPT_FOLDER}/scripts/menu/"*.sh; do . "${script}"; done
|
||||
for script in "${HELPER_SCRIPT_FOLDER}/scripts/menu/K1/"*.sh; do . "${script}"; done
|
||||
|
|
Loading…
Add table
Reference in a new issue