We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b55d14d commit 1435c28Copy full SHA for 1435c28
1 file changed
publish.rb
@@ -25,7 +25,7 @@
25
require 'tmpdir'
26
27
# 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?
+if ARGV.count < 1 or ARGV.include? '--test' && ARGV[ARGV.index('--test') + 1].nil?
29
STDERR.puts "Usage: ./publish.rb { <gh-user> | <gh-url> } [ --test '<command>' ] [ --no-fix-links ]"
30
exit(1)
31
end
@@ -84,7 +84,7 @@
84
85
if ARGV.include? '--test'
86
# run test command
87
- exit(system ARGV[ARGV.index ('--test') + 1])
+ exit(system ARGV[ARGV.index('--test') + 1])
88
elsif git_url
89
system "git add ."
90
message = "Site updated at #{Time.now.utc}"
0 commit comments