Skip to content

Commit 00280d3

Browse files
committed
support relative path for -prefix
Signed-off-by: Sombrio <[email protected]>
1 parent 0630edc commit 00280d3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

etc/DependencyInstaller.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1105,6 +1105,9 @@ main() {
11051105
warn "Previous -local argument will be overwritten with -prefix."
11061106
fi
11071107
PREFIX="${1#*=}"
1108+
if [[ ! "${PREFIX}" = /* ]]; then
1109+
PREFIX="$(pwd)/${PREFIX}"
1110+
fi
11081111
;;
11091112
-nocert)
11101113
warn "Security certificates for downloaded packages will not be checked."

0 commit comments

Comments
 (0)