update scripts works when not on a branch.

[#76017026]