Resolve ShellCheck 0.4.7 issues
[releng/builder.git] / jjb / check-poms.sh
index 7ba7f699061112b35b7970067e4fa5f0ab3fb3b1..a23ca9ba958b517202e7b4568680dfe8c8d16c7a 100644 (file)
@@ -52,7 +52,7 @@ done
 FILE=repos.txt
 
 find . -name pom.xml -print0 | xargs -0 grep -i '<repositories>\|<pluginRepositories>' > "$FILE"
-[[ $(tr -d "\r\n" < $FILE|wc -c) -eq 0 ]] && rm $FILE
+[[ $(tr -d "\\r\\n" < $FILE|wc -c) -eq 0 ]] && rm $FILE
 
 if [ -a $FILE ]
 then