We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 667d71c commit 58424a5Copy full SHA for 58424a5
cibuild.sh
@@ -6,8 +6,8 @@ echo "Searching for BOMs -------------------------------"
6
FOUND_BOM=false
7
for filename in ./**/*.*; do
8
# Make sure that the file is UTF-8 so we don't search binary files or other encodings
9
- CURRENT_FILE_ENCODING="`file --mime-encoding --brief "$filename"`"
10
- if [ "$CURRENT_FILE_ENCODING" == "utf-8" ] && [ "`head -c 3 -- "$filename"`" == $'\xef\xbb\xbf' ]
+ CURRENT_FILE_ENCODING="$(file --mime-encoding --brief "$filename")"
+ if [ "$CURRENT_FILE_ENCODING" == "utf-8" ] && [ "$(head -c 3 -- "$filename")" == $'\xef\xbb\xbf' ]
11
then
12
# Make note of all the files that failed so we can see it in the Travis log
13
FOUND_BOM=true
0 commit comments