Permalink
Browse files

Use instead of legacy backticks for checksum.sh

  • Loading branch information...
philipphofmann committed Nov 8, 2018
1 parent 64dc2ec commit fd8ab753a03ef3818bec844fc2dd4ab13ef33169
Showing with 2 additions and 2 deletions.
  1. +2 −2 checksum.sh
@@ -7,7 +7,7 @@ fi
touch $RESULT_FILE

checksum_file() {
echo `openssl md5 $1 | awk '{print $2}'`
echo $(openssl md5 $1 | awk '{print $2}')
}

FILES=()
@@ -17,7 +17,7 @@ done < <(find . -name 'build.gradle' -type f -print0)

# Loop through files and append MD5 to result file
for FILE in ${FILES[@]}; do
echo `checksum_file $FILE` >> $RESULT_FILE
echo $(checksum_file $FILE) >> $RESULT_FILE
done
# Now sort the file so that it is
sort $RESULT_FILE -o $RESULT_FILE

0 comments on commit fd8ab75

Please sign in to comment.