gosh 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/gosh +2 -2
- metadata +3 -3
data/bin/gosh
CHANGED
@@ -34,8 +34,8 @@ def confirm(script_source)
|
|
34
34
|
tempfile.write script_source
|
35
35
|
tempfile.close
|
36
36
|
|
37
|
-
command = "#{Shellwords.escape(
|
38
|
-
system(command) or abort("error communicating with #{
|
37
|
+
command = "#{Shellwords.escape(EDITOR)} #{Shellwords.escape(tempfile.path)}"
|
38
|
+
system(command) or abort("error communicating with #{EDITOR}")
|
39
39
|
|
40
40
|
source = IO.read(tempfile.path)
|
41
41
|
source[/\A(.*)^# --- PLACE YOUR ANSWER ABOVE THIS LINE/m, 1].strip
|
metadata
CHANGED