diff --git a/build.sh b/build.sh index aa06716ce..a16b17812 100755 --- a/build.sh +++ b/build.sh @@ -4,7 +4,15 @@ source build-config.cfg ## Only run npm build if there was a change in a .js or .vue file current_md5=$( last-js-build.md5 +current_OS=`uname` + +# For macOS (Darwin) +if [ $current_OS == "Darwin" ]; then + find src -type f \( -name "*.js" -or -name "*.vue" \) -exec md5 {} \; | sort -k 2 | md5 > last-js-build.md5 +else + find src -type f \( -name "*.js" -or -name "*.vue" \) -exec md5sum {} \; | sort -k 2 | md5sum > last-js-build.md5 +fi + new_md5=$(get_data(); $this->assertEquals($metadata->get_id(), $data['id']); + $this->assertEquals('Dia/Mês/Ano', $data['name']); // Mantém-se o valor antigo no item $metav = get_post_meta($item->get_id(), $data['id'], true);