aboutsummaryrefslogtreecommitdiff
path: root/undopatch
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-06-24 19:00:28 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-06-24 19:00:28 +0200
commit05bc72a4c1de4ab2024fa4134cd4825801461e5f (patch)
treeeaafa5a221e455bf1649564b53fec89a78cbbd37 /undopatch
parent71a90d55f7797d504970c691213f2fd48bb8ab54 (diff)
downloadpatches-05bc72a4c1de4ab2024fa4134cd4825801461e5f.tar.gz
undopatch: Fix typo
Diffstat (limited to 'undopatch')
-rwxr-xr-xundopatch2
1 files changed, 1 insertions, 1 deletions
diff --git a/undopatch b/undopatch
index 0112101..e46bc54 100755
--- a/undopatch
+++ b/undopatch
@@ -22,5 +22,5 @@ cmd=echo\ cp
[ x"$1" = x"-x" ] && cmd=cp || echo '(preview, no -x)' 1>&2
find . -name '*.orig' | while read f; do
f=${f%.orig}
- $cmd $w/${f#work/} $f
+ $cmd $(dirname $w)/${f#./work/} $f
done