Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 21 lines (18 sloc) 0.455 kB
#!/usr/bin/env ruby
require 'fileutils'
res = system("gjslint -r public/chatpp")
if !res
puts "Should I run fixjsstyle -r ? (y/n)"
while a = gets
a=a.strip
if a == 'y'
system("fixjsstyle -r public/chatpp")
puts("Finished fixjsstyle. If any errors remain, fix them and re-run this script.")
exit(1)
elsif a =='n'
exit(1)
else
puts "You must answer y or n. Should I run fixjsstyle -r ?"
end
end
end
Jump to Line
Something went wrong with that request. Please try again.