diff options
author | Cédric Picard <cpicard@openmailbox.org> | 2016-01-25 21:08:37 +0100 |
---|---|---|
committer | Cédric Picard <cpicard@openmailbox.org> | 2016-01-25 21:08:37 +0100 |
commit | d5296cdb07bf6742fec3a4ec6faf9e7afa120f5c (patch) | |
tree | 92cca75509c42b58ca524eeccc0fce8b065dba19 | |
parent | e7a8d9b69d459aaaa83204689a0e34862391035d (diff) | |
download | bulkrename-d5296cdb07bf6742fec3a4ec6faf9e7afa120f5c.tar.gz bulkrename-d5296cdb07bf6742fec3a4ec6faf9e7afa120f5c.tar.bz2 bulkrename-d5296cdb07bf6742fec3a4ec6faf9e7afa120f5c.zip |
Fixed bug when using arguments instead of stdin
-rwxr-xr-x | bulkrename | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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}" |