diff options
author | Nicolas Vigier <boklm@mageia.org> | 2013-03-02 14:58:16 +0000 |
---|---|---|
committer | Nicolas Vigier <boklm@mageia.org> | 2013-03-02 14:58:16 +0000 |
commit | 450f70c8bdff7e3868a09cf016d5579021b457bb (patch) | |
tree | 3ad02927531ca07cc66d327b3d1ea55ca0511997 /bin/editor | |
parent | 6f7726d134242964a74ac4618d1c5a32a60f7ef3 (diff) | |
download | common-data-450f70c8bdff7e3868a09cf016d5579021b457bb.tar common-data-450f70c8bdff7e3868a09cf016d5579021b457bb.tar.gz common-data-450f70c8bdff7e3868a09cf016d5579021b457bb.tar.bz2 common-data-450f70c8bdff7e3868a09cf016d5579021b457bb.tar.xz common-data-450f70c8bdff7e3868a09cf016d5579021b457bb.zip |
bin/editor: print error on STDERR and exit with error in case of error
Diffstat (limited to 'bin/editor')
-rwxr-xr-x | bin/editor | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -18,4 +18,5 @@ exec_editor emacs "$@" exec_editor vim "$@" exec_editor nano "$@" -echo "no text editor detected" +echo "no text editor detected" >&2 +exit 1 |