diff options
author | Eric Wong <normalperson@yhbt.net> | 2013-08-25 06:23:50 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2013-08-25 06:23:50 +0000 |
commit | 27ced8f3b631e16930a5ff56bec0a12467bf5206 (patch) | |
tree | c3fa9c8431c3b6ed53470962876554903e8d41d0 | |
parent | 3fb233fd768f3dbce2a3073ba596458871cec93e (diff) | |
download | dtas-27ced8f3b631e16930a5ff56bec0a12467bf5206.tar.gz |
Oops, not everybody has their VISUAL or EDITOR environment set.
-rwxr-xr-x | bin/dtas-cueedit | 2 | ||||
-rwxr-xr-x | bin/dtas-sinkedit | 2 | ||||
-rwxr-xr-x | bin/dtas-sourceedit | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/bin/dtas-cueedit b/bin/dtas-cueedit index 2a205ac..3c03a78 100755 --- a/bin/dtas-cueedit +++ b/bin/dtas-cueedit @@ -5,7 +5,7 @@ require 'tempfile' require 'shellwords' usage = "Usage: #$0 FILENAME" -editor = ENV["VISUAL"] || ENV["EDITOR"] +editor = ENV["VISUAL"] || ENV["EDITOR"] || "vi" ARGV.size > 0 or abort usage def err_msg(cmd, status) diff --git a/bin/dtas-sinkedit b/bin/dtas-sinkedit index 24cd302..9d9fa25 100755 --- a/bin/dtas-sinkedit +++ b/bin/dtas-sinkedit @@ -6,7 +6,7 @@ require 'dtas/unix_client' require 'dtas/disclaimer' require 'tempfile' require 'yaml' -editor = ENV["VISUAL"] || ENV["EDITOR"] +editor = ENV["VISUAL"] || ENV["EDITOR"] || "vi" c = DTAS::UNIXClient.new usage = "#$0 SINKNAME" ARGV.size == 1 or abort usage diff --git a/bin/dtas-sourceedit b/bin/dtas-sourceedit index 3ce7945..c55000a 100755 --- a/bin/dtas-sourceedit +++ b/bin/dtas-sourceedit @@ -6,7 +6,7 @@ require 'tempfile' require 'yaml' require 'dtas/unix_client' require 'dtas/disclaimer' -editor = ENV["VISUAL"] || ENV["EDITOR"] +editor = ENV["VISUAL"] || ENV["EDITOR"] || "vi" c = DTAS::UNIXClient.new usage = $0 ARGV.size == 0 or abort usage |