testing
This commit is contained in:
parent
deecc351cf
commit
fc3bfe570b
1 changed files with 1 additions and 6 deletions
|
@ -66,20 +66,15 @@
|
|||
|
||||
source="${BASH_SOURCE[0]}"
|
||||
|
||||
echo "*** DEBUG source=$source"
|
||||
|
||||
# resolve $source until the file is no longer a symlink
|
||||
while [[ -h "$source" ]]; do
|
||||
scriptroot="$( cd -P "$( dirname "$source" )" && pwd )"
|
||||
echo "*** DEBUG scriptroot=$scriptroot"
|
||||
source="$(readlink "$source")"
|
||||
echo "*** DEBUG source=$source"
|
||||
# if $source was a relative symlink, we need to resolve it relative to the path where the
|
||||
# symlink file was located
|
||||
[[ $source != /* ]] && source="$scriptroot/$source"
|
||||
done
|
||||
scriptroot="$( cd -P "$( dirname "$source" )" && pwd )"
|
||||
echo "*** DEBUG scriptroot=$scriptroot"
|
||||
|
||||
function print_help () {
|
||||
sed -n '/^### /,/^$/p' "$source" | cut -b 5-
|
||||
|
@ -99,8 +94,8 @@ function highlight () {
|
|||
echo "${COLOR_CYAN}$FAILURE_PREFIX${1//${COLOR_RESET}/${COLOR_CYAN}}${COLOR_CLEAR}"
|
||||
}
|
||||
|
||||
which realpath
|
||||
installer_dir=$(realpath "$scriptroot/../")
|
||||
echo "*** DEBUG installer_dir=$installer_dir"
|
||||
|
||||
tmp_dir=''
|
||||
vmr_dir=''
|
||||
|
|
Loading…
Reference in a new issue