aboutsummaryrefslogtreecommitdiffstats
path: root/bin/editor
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2013-03-02 14:58:16 +0000
committerNicolas Vigier <boklm@mageia.org>2013-03-02 14:58:16 +0000
commit450f70c8bdff7e3868a09cf016d5579021b457bb (patch)
tree3ad02927531ca07cc66d327b3d1ea55ca0511997 /bin/editor
parent6f7726d134242964a74ac4618d1c5a32a60f7ef3 (diff)
downloadcommon-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-xbin/editor3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/editor b/bin/editor
index a7d5326..057b977 100755
--- a/bin/editor
+++ b/bin/editor
@@ -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