aboutsummaryrefslogtreecommitdiff
path: root/undopatch
diff options
context:
space:
mode:
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