From 6e86f19963540e65028433c4bc085c3d7aed42e4 Mon Sep 17 00:00:00 2001 From: Luke Childs Date: Mon, 28 Jun 2021 01:15:21 +0700 Subject: [PATCH] Fix path --- os/build.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/os/build.sh b/os/build.sh index 195e419..7be0460 100755 --- a/os/build.sh +++ b/os/build.sh @@ -1,6 +1,8 @@ +# SCRIPT_DIR="$(readlink $(dirname "${BASH_SOURCE[0]}"))" +SCRIPT_DIR=$(realpath $(dirname "${BASH_SOURCE[0]}")) docker run \ --rm \ --privileged \ -v /dev:/dev \ - -v ${PWD}:/build \ + -v ${SCRIPT_DIR}:/build \ mkaczanowski/packer-builder-arm build raspberrypi.json