From b35e4740b3bcdb550de842990ac68bc0d2974d63 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Thu, 30 Apr 2020 11:24:17 -0500 Subject: Resolve absolute paths in places input can vary. --- scripts/mkroot.sh | 1 + scripts/test.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/scripts/mkroot.sh b/scripts/mkroot.sh index 56905f29..77284e76 100755 --- a/scripts/mkroot.sh +++ b/scripts/mkroot.sh @@ -123,6 +123,7 @@ if [ -z "$LINUX" ] || [ ! -d "$LINUX/kernel" ]; then echo 'No $LINUX directory, kernel build skipped.' else # Which architecture are we building a kernel for? + LINUX="$(realpath "$LINUX")" [ -z "$TARGET" ] && TARGET="${CROSS_BASE/-*/}" [ -z "$TARGET" ] && TARGET="$(uname -m)" diff --git a/scripts/test.sh b/scripts/test.sh index d9955a5f..b22f928e 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -42,6 +42,7 @@ do_test() C="$(which $CMDNAME 2>/dev/null)" [ -z "$C" ] && "C=$CMDNAME" fi + C="$(realpath "$C")" . "$1" } -- cgit v1.2.3