aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVG <vg@devys.org>2016-01-25 20:31:49 +0100
committerVG <vg@devys.org>2016-01-25 20:31:49 +0100
commit1a2a7b0f68e5b6eb9dc315ac9f925ee75703d701 (patch)
tree320532c75950773ac3466782ae9b384a941110ff
parent40e78b0dfca1a1eff2112f46fb7236048e90d1f2 (diff)
downloadbulkrename-1a2a7b0f68e5b6eb9dc315ac9f925ee75703d701.tar.gz
bulkrename-1a2a7b0f68e5b6eb9dc315ac9f925ee75703d701.tar.bz2
bulkrename-1a2a7b0f68e5b6eb9dc315ac9f925ee75703d701.zip
use exit status of re-execution of ourself as exit status
-rwxr-xr-xbulkrename3
1 files changed, 1 insertions, 2 deletions
diff --git a/bulkrename b/bulkrename
index d86f7a8..c011082 100755
--- a/bulkrename
+++ b/bulkrename
@@ -5,8 +5,7 @@
set -e -u
if [ $# -ne 0 ] ; then
- { for i in "$@" ; do printf "%s\n" "$i" ; done } | "$0"
- exit
+ { for i in "$@" ; do printf "%s\n" "$i" ; done } | exec "$0"
fi
EDITOR="${EDITOR:-vi}"