After script is finished, everything is restored.

I use this script to build the git-version (commit submit date) package,
built by CI procedure.