Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/freebsd/poudriere.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAllan Jude <allan@klarasystems.com>2021-10-31 06:18:37 +0300
committerEmmanuel Vadot <manu@bidouilliste.com>2021-11-03 18:46:10 +0300
commit06f86b9690038532e06c02ecf560c858f6465a76 (patch)
tree10ff83da084d057e8e52687e00813686ec76e3fb /src
parentd4d40746ff8f51daef65dac5c89aea6e71ece504 (diff)
Prefix image -A path with PWD
missed in e71815b2a9b59fc569dbb04d971c51197d2ab550
Diffstat (limited to 'src')
-rw-r--r--src/share/poudriere/image.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/share/poudriere/image.sh b/src/share/poudriere/image.sh
index f1f04072..53a110e9 100644
--- a/src/share/poudriere/image.sh
+++ b/src/share/poudriere/image.sh
@@ -274,6 +274,8 @@ PKG_QUIET="-q"
while getopts "A:bB:c:f:h:i:j:m:n:o:p:P:s:S:t:vw:X:z:" FLAG; do
case "${FLAG}" in
A)
+ [ "${OPTARG#/}" = "${OPTARG}" ] && \
+ OPTARG="${SAVED_PWD}/${OPTARG}"
[ -f "${OPTARG}" ] || err 1 "No such post-build-script: ${OPTARG}"
POST_BUILD_SCRIPT="$(realpath ${OPTARG})"
;;