aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCédric Picard <cpicard@openmailbox.org>2016-01-25 21:08:37 +0100
committerCédric Picard <cpicard@openmailbox.org>2016-01-25 21:08:37 +0100
commitd5296cdb07bf6742fec3a4ec6faf9e7afa120f5c (patch)
tree92cca75509c42b58ca524eeccc0fce8b065dba19
parente7a8d9b69d459aaaa83204689a0e34862391035d (diff)
downloadbulkrename-d5296cdb07bf6742fec3a4ec6faf9e7afa120f5c.tar.gz
bulkrename-d5296cdb07bf6742fec3a4ec6faf9e7afa120f5c.tar.bz2
bulkrename-d5296cdb07bf6742fec3a4ec6faf9e7afa120f5c.zip
Fixed bug when using arguments instead of stdin
-rwxr-xr-xbulkrename3
1 files changed, 2 insertions, 1 deletions
diff --git a/bulkrename b/bulkrename
index a927f9b..e31f148 100755
--- a/bulkrename
+++ b/bulkrename
@@ -5,7 +5,8 @@
set -e -u
if [ $# -ne 0 ] ; then
- { for i in "$@" ; do printf "%s\n" "$i" ; done } | exec "$0"
+ { for i in "$@" ; do printf "%s\n" "$i" ; done } | "$0"
+ exit $?
fi
EDITOR="${EDITOR:-vi}"