summaryrefslogtreecommitdiff
path: root/lib/bundler08/commands/exec_command.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bundler08/commands/exec_command.rb')
-rw-r--r--lib/bundler08/commands/exec_command.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler08/commands/exec_command.rb b/lib/bundler08/commands/exec_command.rb
index 5ee1862b6d..1a3fac2836 100644
--- a/lib/bundler08/commands/exec_command.rb
+++ b/lib/bundler08/commands/exec_command.rb
@@ -1,4 +1,4 @@
-combined = [File.basename($0)] + ARGV
+combined = [File.basename($0 ? $0 : "")] + ARGV
gem_i = combined.index("gem")
exec_i = combined.index("exec")