summaryrefslogtreecommitdiff
path: root/beagle/debian-rfs/usr/bin/sensible-editor
diff options
context:
space:
mode:
authorManuel Traut <manut@mecka.net>2011-07-18 14:00:12 +0200
committerManuel Traut <manut@mecka.net>2011-07-18 14:00:12 +0200
commited006a8eb44831189e152826c692330d0a0cfe3b (patch)
tree66996c44c68a8787e4a35a85aea683975f307767 /beagle/debian-rfs/usr/bin/sensible-editor
parent4493e8f707e62b9867d9cfd40205115140e7c993 (diff)
delete beagle-dir
Signed-off-by: Manuel Traut <manut@mecka.net>
Diffstat (limited to 'beagle/debian-rfs/usr/bin/sensible-editor')
-rwxr-xr-xbeagle/debian-rfs/usr/bin/sensible-editor32
1 files changed, 0 insertions, 32 deletions
diff --git a/beagle/debian-rfs/usr/bin/sensible-editor b/beagle/debian-rfs/usr/bin/sensible-editor
deleted file mode 100755
index 8e4c9e4..0000000
--- a/beagle/debian-rfs/usr/bin/sensible-editor
+++ /dev/null
@@ -1,32 +0,0 @@
-#!/bin/sh
-
-ret="$?"
-
-if [ -n "$VISUAL" ]; then
- ${VISUAL} "$@"
- ret="$?"
- if [ "$ret" -ne 126 ] && [ "$ret" -ne 127 ]; then
- exit "$ret"
- fi
-fi
-
-${EDITOR:-editor} "$@"
-ret="$?"
-if [ "$ret" -eq 126 ] || [ "$ret" -eq 127 ]; then
- nano "$@"
- ret="$?"
- if [ "$ret" -eq 126 ] || [ "$ret" -eq 127 ]; then
- nano-tiny "$@"
- ret="$?"
- if [ "$ret" -eq 126 ] || [ "$ret" -eq 127 ]; then
- vi "$@"
- ret="$?"
- if [ "$ret" -eq 126 ] || [ "$ret" -eq 127 ]; then
- echo "Couldn't find an editor!" 1>&2
- echo "Set the \$EDITOR environment variable to your desired editor." 1>&2
- exit 1
- fi
- fi
- fi
-fi
-exit "$ret"