We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 80bba07 commit e630900Copy full SHA for e630900
1 file changed
scripts/linuxcnc_info.in
@@ -46,7 +46,8 @@ git_commit () {
46
47
# try to find a visual editor to show created file
48
# use list with existing preference first, then other common editors
49
-editors="$VISUAL gedit mousepad geany nedit gvim abiword"
+editors="$VISUAL gedit mousepad geany nedit nano gvim abiword"
50
+VIEWER=""
51
for e in $editors ; do
52
if [ -x "$(command -v $e)" ] ; then
53
VIEWER=$e
@@ -62,6 +63,8 @@ while getopts hs OPT; do
62
63
esac
64
done
65
66
+[ -z "$VIEWER" ] && echo "No VIEWER: output to $ofile"
67
+
68
# all subsequent output:
69
exec 1>$ofile
70
exec 2>&1
0 commit comments