Skip to content

Commit 58424a5

Browse files
committed
apply shellcheck fix
1 parent 667d71c commit 58424a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cibuild.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ echo "Searching for BOMs -------------------------------"
66
FOUND_BOM=false
77
for filename in ./**/*.*; do
88
# 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' ]
9+
CURRENT_FILE_ENCODING="$(file --mime-encoding --brief "$filename")"
10+
if [ "$CURRENT_FILE_ENCODING" == "utf-8" ] && [ "$(head -c 3 -- "$filename")" == $'\xef\xbb\xbf' ]
1111
then
1212
# Make note of all the files that failed so we can see it in the Travis log
1313
FOUND_BOM=true

0 commit comments

Comments
 (0)