Commit ce1fa4ddabb395492270841f4a483de8e81f8651
gt-do: handle absence of $EDITOR variable
Author: xaizek
Author date (UTC): 2020-06-30 22:18
Committer name: xaizek
Committer date (UTC): 2020-06-30 22:18
Parent(s): e234be9f38c8545b0ce24100183901493adc9077
Signing key: 99DC5E4DB05F6BE2
Tree: 84dcdb4a20e06f276f5844473db1d231d36182c1
File |
Lines added |
Lines deleted |
gt-do |
1 |
1 |
File gt-do changed (mode: 100755) (index fec71cc..fe2780d) |
... |
... |
if [ $# -eq 2 ] && ( [ "$1" = "-e" ] || [ "$1" = "--edit" ] ); then |
80 |
80 |
fi |
fi |
81 |
81 |
|
|
82 |
82 |
actionfile="$actions_dir/$2" |
actionfile="$actions_dir/$2" |
83 |
|
exec $EDITOR "$actionfile" |
|
|
83 |
|
exec ${EDITOR:-vim} "$actionfile" |
84 |
84 |
fi |
fi |
85 |
85 |
|
|
86 |
86 |
if [ "${1:0:1}" = "-" ]; then |
if [ "${1:0:1}" = "-" ]; then |