Use the realpath command instead for path detection...

This commit is contained in:
Peter Cai 2023-05-10 10:56:32 -04:00
parent 67790fdb2c
commit 71264a9937

View file

@ -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)/{}/*"