gosh 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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