From 71264a99370323398ac6b180b53749541d92d3d1 Mon Sep 17 00:00:00 2001 From: Peter Cai Date: Wed, 10 May 2023 10:56:32 -0400 Subject: [PATCH] Use the realpath command instead for path detection... --- apply.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apply.sh b/apply.sh index 915a6df..25681f9 100755 --- a/apply.sh +++ b/apply.sh @@ -1,4 +1,4 @@ #!/bin/bash # Always execute in the script's directory -pushd "$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )" +pushd "$(dirname "$(realpath "$0")")" find . -name "*.patch" -printf "%h\n" | uniq | xargs -I{} bash -c "cd $(pwd)/../{}; git am $(pwd)/{}/*"