Ensure the apply script is always executed in the context of this directory

This commit is contained in:
Peter Cai 2023-05-10 10:53:11 -04:00
parent 37b53d8eec
commit 496d6a5d97

View file

@ -1,3 +1,4 @@
#!/bin/bash
# Always execute in the script's directory
pushd ${0%/*}
find . -name "*.patch" -printf "%h\n" | uniq | xargs -I{} bash -c "cd $(pwd)/../{}; git am $(pwd)/{}/*"