From 27ced8f3b631e16930a5ff56bec0a12467bf5206 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 25 Aug 2013 06:23:50 +0000 Subject: dtas-*edit: properly fall back to 'vi' as documented Oops, not everybody has their VISUAL or EDITOR environment set. --- bin/dtas-cueedit | 2 +- bin/dtas-sinkedit | 2 +- 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 -- cgit v1.2.3-24-ge0c7