mirror of
https://github.com/Pmodules/Pmodules.git
synced 2026-06-30 03:09:40 +02:00
build-system, modulecmd: code cleanup
This commit is contained in:
@@ -15,8 +15,8 @@ set -o nounset
|
||||
shopt -s nullglob
|
||||
|
||||
# get absolute path of script
|
||||
mydir=$(cd "$(/usr/bin/dirname "$0")" && pwd -L)
|
||||
prefix=$(/usr/bin/dirname "${mydir}");
|
||||
mydir=$(cd "$(/usr/bin/dirname -- "${BASH_SOURCE[0]}")" && pwd -L)
|
||||
prefix=$(/usr/bin/dirname -- "${mydir}");
|
||||
|
||||
path_orig="${PATH}"
|
||||
PATH="${prefix}/bin:${prefix}/libexec:/bin:/usr/bin:/sbin:/usr/sbin"
|
||||
|
||||
Reference in New Issue
Block a user