forked from PeterGSI/patches
Use a better script path detection method
This commit is contained in:
parent
496d6a5d97
commit
67790fdb2c
2
apply.sh
2
apply.sh
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Always execute in the script's directory
|
# Always execute in the script's directory
|
||||||
pushd ${0%/*}
|
pushd "$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
|
||||||
find . -name "*.patch" -printf "%h\n" | uniq | xargs -I{} bash -c "cd $(pwd)/../{}; git am $(pwd)/{}/*"
|
find . -name "*.patch" -printf "%h\n" | uniq | xargs -I{} bash -c "cd $(pwd)/../{}; git am $(pwd)/{}/*"
|
||||||
|
|
Loading…
Reference in a new issue