Fix execute_install_scripts message to show the right param name.

This commit is contained in:
awalsh128 2022-11-19 14:50:50 -08:00
parent 29bff55cc7
commit 110c8b1c77

View file

@ -11,7 +11,7 @@ cache_dir="${1}"
version="${2}" version="${2}"
# Execute post-installation script. # Execute post-installation script.
execute_postinst="${3}" execute_install_scripts="${3}"
# List of the packages to use. # List of the packages to use.
input_packages="${@:4}" input_packages="${@:4}"
@ -36,9 +36,9 @@ if test -z "${packages}"; then
exit 2 exit 2
fi fi
if test "${execute_postinst}" != "true" -o "${execute_postinst}" != "false"; then if test "${execute_install_scripts}" != "true" -o "${execute_install_scripts}" != "false"; then
log "aborted" log "aborted"
log "execute_postinst value '${execute_postinst}' must be either true or false (case sensitive)." log "execute_install_scripts value '${execute_install_scripts}' must be either true or false (case sensitive)."
exit 3 exit 3
fi fi