File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change 1414MODE=" release"
1515if [ " ${RELEASE:- 0} " != " 1" ]; then MODE=" debug" ; fi
1616# shellcheck disable=SC2046
17- SRC_HASH=$( (echo " MODE=${MODE} " ; sha256sum $( git ls-files -z -- " src " | tr ' \0 ' ' ' 2> /dev/null || find src -type f -name ' *.rs' ; echo Cargo.toml; echo build.sh) 2> /dev/null | sort -k2 | sha256sum ) | sha256sum | cut -d' ' -f1 ) || SRC_HASH=" unknown"
17+ SRC_HASH=$( (echo " MODE=${MODE} " ; sha256sum $( find src -type f -name ' *.rs' ; echo Cargo.toml; echo build.sh) 2> /dev/null | sort -k2 | sha256sum ) | sha256sum | cut -d' ' -f1 ) || SRC_HASH=" unknown"
1818
1919if [ -f out/.build-hash ] && [ -f ../../dist/scramjet.wasm.wasm ] && [ " $SRC_HASH " != " unknown" ] && grep -q " $SRC_HASH " out/.build-hash; then
2020 echo " Rewriter sources unchanged (hash $SRC_HASH ); skipping rebuild."
You can’t perform that action at this time.
0 commit comments