Permalink
Browse files

Remove commented out broken regex

  • Loading branch information...
1 parent 3a54296 commit 3ce99651327a244d3d14aa5e9dc0b7813228b08a @holdenk committed Sep 4, 2012
Showing with 0 additions and 1 deletion.
  1. +0 −1 Unicorn/Shell.pm
View
@@ -15,7 +15,6 @@ sub fix_shell {
#Probably!
#Handle with [-e foo -e bar]
# http://www.pixelbeat.org/programming/shell_script_mistakes.html
-# $rt =~ s/if\s*\[\s*\-e\s*(\w+?)\s*\-e(\w+?)\s*\]\s*$/if [-e $1] || [-e $2]/;
$rt =~ s/if\s*\[\s*\-e\s*(\w+?)\s*\-e\s*(\w+?)\s*\]\s*$/if [-e $1] || [\-e $2]/;
#Double negative
$rt =~ s/\[\s*\!\-z\s*(\"\$\w*\")\]/[$1]/;

0 comments on commit 3ce9965

Please sign in to comment.