From 09a62cb1d2c49d151628d5423abedb8e361b8d47 Mon Sep 17 00:00:00 2001 From: Robert Taylor Date: Mon, 29 May 2017 23:00:06 +0100 Subject: [PATCH] Fixing `physical_directory_of` function for cases when target directory lives in root. (#194) --- bin/_blackbox_common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/_blackbox_common.sh b/bin/_blackbox_common.sh index c227136..5feba0e 100755 --- a/bin/_blackbox_common.sh +++ b/bin/_blackbox_common.sh @@ -28,7 +28,7 @@ source "${0%/*}"/_stack_lib.sh function physical_directory_of() { local d=$(dirname "$1") local f=$(basename "$1") - (cd "$d" && echo "$(pwd -P)/$f" ) + (cd "$d" && echo "$(pwd -P | sed 's/\/$//')/$f" ) } # Set REPOBASE to the top of the repository