Skip to content

Commit 1435c28

Browse files
committed
Ruby is special.
1 parent b55d14d commit 1435c28

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

publish.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
require 'tmpdir'
2626

2727
# TODO: We shou;d use a real parser library. This has many ways it could go wrong.
28-
if ARGV.count < 1 or ARGV.include? '--test' && ARGV[ARGV.index ('--test') + 1].nil?
28+
if ARGV.count < 1 or ARGV.include? '--test' && ARGV[ARGV.index('--test') + 1].nil?
2929
STDERR.puts "Usage: ./publish.rb { <gh-user> | <gh-url> } [ --test '<command>' ] [ --no-fix-links ]"
3030
exit(1)
3131
end
@@ -84,7 +84,7 @@
8484

8585
if ARGV.include? '--test'
8686
# run test command
87-
exit(system ARGV[ARGV.index ('--test') + 1])
87+
exit(system ARGV[ARGV.index('--test') + 1])
8888
elsif git_url
8989
system "git add ."
9090
message = "Site updated at #{Time.now.utc}"

0 commit comments

Comments
 (0)