diff --git a/functions/checks.sh b/functions/checks.sh index 55b24df3..415e538f 100644 --- a/functions/checks.sh +++ b/functions/checks.sh @@ -132,8 +132,9 @@ elif [[ "$new_version_major_rev" -eq "$current_version_major_rev" ]]; then fi fi -# Perform post_update commands for current version if it is a cooker -if grep -qF "cooker" <<< $hard_version; then # If newly-installed version is a "cooker" build, always perform post_update commands for current version +# Perform post_update commands for current version if it is a cooker or PR +if grep -qF "cooker" <<< "$hard_version" || grep -qF "PR" <<< "$hard_version"; then + # If newly-installed version is a "cooker" or "PR" build, always perform post_update commands for current version if [[ "$(echo $hard_version | cut -d'-' -f2)" == "$new_version" ]]; then is_newer_version="true" fi