Skip to content
This repository was archived by the owner on Apr 8, 2025. It is now read-only.

Commit 7059d7a

Browse files
committed
Don't pass unnecessary data to shell script
1 parent 04330c5 commit 7059d7a

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

bin/fake_process.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
/bin/echo -n $1
2-
exit $2
1+
#!/bin/sh
2+
3+
exit $1

lib/betamax.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ def `(cmd)
1212
cset = Betamax.commands.shift
1313

1414
if cmd == cset[0]
15-
super("#{File.join(File.dirname(__FILE__), '..', 'bin', 'fake_process.sh')} '#{cset[1][0]}' '#{cset[1][1]}'")
15+
super("#{File.join(File.dirname(__FILE__), '..', 'bin', 'fake_process.sh')} '#{cset[1][1]}'")
16+
cset[1][0]
1617
else
1718
raise "You're not following the script!"
1819
end

0 commit comments

Comments
 (0)