# Check if the current version is the last one {{{
if [ "${cstate_current_version}" != "${cstate_new_version}" ]; then
[ "${DEBUG}" -eq "0" ] && printf '\e[1;35m%-6s\e[m\n' "DEBUG: Test version — Current version (${cstate_current_version}) and new one (${cstate_new_version}) seems to be different."
## Create a temp file to monitor
touch -- "${cstate_new_version_file}"
printf '\e[1;35m%-6s\e[m\n' "An upgrade is available for cState (current: ${cstate_current_version}): ${cstate_new_version}." >> "${cstate_new_version_file}"
else
[ "${DEBUG}" -eq "0" ] && printf '\e[1;35m%-6s\e[m\n' "DEBUG: Test version — The current version is up-to-date."