# Check if the current version is the last one {{{
if [ "${pb_current_version}" != "${pb_new_version}" ]; then
[ "${DEBUG}" -eq "0" ] && printf '\e[1;35m%-6s\e[m\n' "DEBUG: Test version — Current version (${pb_current_version}) and new one (${pb_new_version}) seems to be different."
## Create a temp file to monitor
touch -- "${pb_new_version_file}"
printf '\e[1;35m%-6s\e[m\n' "An upgrade is available for PrivateBin (current: ${pb_current_version}): ${pb_new_version}." >> "${pb_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."