diff --git a/scripts/build_nim.sh b/scripts/build_nim.sh index 1cfa7ce..9b75ce9 100755 --- a/scripts/build_nim.sh +++ b/scripts/build_nim.sh @@ -56,7 +56,7 @@ nim_needs_rebuilding() { fi # compare the built commit's timestamp to the date of the last commit (keep in mind that Git doesn't preserve file timestamps) - if [[ -e "${NIM_DIR}/bin/timestamp" && $(cat "${NIM_DIR}/bin/timestamp") -ne $(cd "$NIM_DIR"; git log --pretty=format:%cd -n 1 --date=unix) ]]; then + if [[ -e "${NIM_DIR}/bin/timestamp" && $(cat "${NIM_DIR}/bin/timestamp") -eq $(cd "$NIM_DIR"; git log --pretty=format:%cd -n 1 --date=unix) ]]; then return $NO_REBUILD else return $REBUILD