Skip to content

Commit 13d8437

Browse files
examples: change $(pwd) to "${PWD}"
Make a minor fix to the build scripts to quote the pwd in case it has a space in it. While we're at it, use (POSIX specified) ${PWD} instead of potentially shelling out to $(pwd). Thanks to Pragyan for the suggestion. Signed-off-by: Allison Karlitskaya <[email protected]>
1 parent ed0e088 commit 13d8437

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/unified-secureboot/build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ fi
4141
mkdir tmp/internal-sysroot
4242
podman build \
4343
--iidfile=tmp/iid \
44-
-v $(pwd)/tmp/internal-sysroot:/tmp/sysroot:z,U \
44+
-v "${PWD}/tmp/internal-sysroot:/tmp/sysroot:z,U" \
4545
--secret=id=key,src=secureboot/db.key \
4646
--secret=id=cert,src=secureboot/db.crt \
4747
.

examples/unified/build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ mkdir -p tmp/sysroot/composefs
2525
mkdir tmp/internal-sysroot
2626
podman build \
2727
--iidfile=tmp/iid \
28-
-v $(pwd)/tmp/internal-sysroot:/tmp/sysroot:z,U \
28+
-v "${PWD}/tmp/internal-sysroot:/tmp/sysroot:z,U" \
2929
.
3030

3131
IMAGE_ID="$(sed s/sha256:// tmp/iid)"

0 commit comments

Comments
 (0)