diff --git a/build.sh b/build.sh index 624c54b..86b3bf3 100644 --- a/build.sh +++ b/build.sh @@ -19,10 +19,10 @@ done rm -f "$targetRoot/hashList.dat" for file in $(find "$targetRoot/" -type f -not -path "*META-INF*"); do - echo "$(sha1sum "${file}" | awk '{print $1}') ${file#$targetRoot/}" >> "$targetRoot/hashList.txt" + echo "$(sha1sum "${file}" | awk '{print $1}') ${file#$targetRoot/}" >> "$targetRoot/hashList.txt" done truncate -s $(($(stat -c %s "$targetRoot/hashList.txt") - 1)) "$targetRoot/hashList.txt" -cat "$targetRoot/hashList.txt" | gzip -c9 > "$targetRoot/hashList.dat" +cat "$targetRoot/hashList.txt" | base64 -w 0 | gzip -c9 > "$targetRoot/hashList.dat" rm -f "$targetRoot/hashList.txt" cd "$targetRoot/"