diff options
| author | Michael Forney <mforney@mforney.org> | 2016-06-04 21:30:21 -0700 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2016-06-04 21:30:21 -0700 |
| commit | 5921b67c36516dcbdfd6b55a147e637adf577c40 (patch) | |
| tree | 99a31caf8c79210bedf47146130705222d3ce07d /util | |
| parent | 669133b670598bf4309a5c6819ad816c5a80e3fc (diff) | |
fetch-curl.rc: Fix patch applying
Diffstat (limited to 'util')
| -rwxr-xr-x | util/fetch-curl.rc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/util/fetch-curl.rc b/util/fetch-curl.rc index ee7eed6b..7199ee5c 100755 --- a/util/fetch-curl.rc +++ b/util/fetch-curl.rc @@ -29,7 +29,8 @@ for(archive in `{awk '{print $2}' sha256}) { } if([ -d patch ]) { - if(! dir=`{git rev-parse --show-prefix}^src >[2]/dev/null) dir=src + if(prefix=`{git rev-parse --show-prefix >[2]/dev/null}) dir=$prefix^src + if not dir=src git apply -v --directory $dir patch/* } status=() |
