There is an important caveat to the script that I felt should be mentioned. The script will remove the asterisk (or dirty bit) from the prompt. Under the hood, the script saves the configuration to a temporary file and then deletes the temporary file. Since the configuration technically gets saved to that temporary file, the dirty bit is cleared.
You'll need to actually save your configuration changes should you want to do so.