Permalink
Browse files

prefer \e over \x1b or \33

  • Loading branch information...
godfat committed Oct 2, 2011
1 parent e7509d1 commit afdcb9bd06dc409ba5851948d015c16f00688db7
Showing with 5 additions and 5 deletions.
  1. +5 −5 gemgem.rb
View
@@ -199,14 +199,14 @@ def gitignore
ver = Gemgem.spec.version.to_s
if ENV['VERSION'].nil?
- puts("\x1b[35mExpected " \
- "\x1b[33mVERSION\x1b[35m=\x1b[33m#{ver}\x1b[m")
+ puts("\e[35mExpected " \
+ "\e[33mVERSION\e[35m=\e[33m#{ver}\e[m")
exit(1)
elsif ENV['VERSION'] != ver
- puts("\x1b[35mExpected \x1b[33mVERSION\x1b[35m=\x1b[33m#{ver} " \
- "\x1b[35mbut got\n " \
- "\x1b[33mVERSION\x1b[35m=\x1b[33m#{ENV['VERSION']}\x1b[m")
+ puts("\e[35mExpected \e[33mVERSION\e[35m=\e[33m#{ver} " \
+ "\e[35mbut got\n " \
+ "\e[33mVERSION\e[35m=\e[33m#{ENV['VERSION']}\e[m")
exit(2)
end
end

0 comments on commit afdcb9b

Please sign in to comment.