diff options
author | VG <vg@devys.org> | 2016-01-25 20:31:49 +0100 |
---|---|---|
committer | VG <vg@devys.org> | 2016-01-25 20:31:49 +0100 |
commit | 1a2a7b0f68e5b6eb9dc315ac9f925ee75703d701 (patch) | |
tree | 320532c75950773ac3466782ae9b384a941110ff | |
parent | 40e78b0dfca1a1eff2112f46fb7236048e90d1f2 (diff) | |
download | bulkrename-1a2a7b0f68e5b6eb9dc315ac9f925ee75703d701.tar.gz bulkrename-1a2a7b0f68e5b6eb9dc315ac9f925ee75703d701.tar.bz2 bulkrename-1a2a7b0f68e5b6eb9dc315ac9f925ee75703d701.zip |
use exit status of re-execution of ourself as exit status
-rwxr-xr-x | bulkrename | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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}" |