Skip to content

Commit 7cea2a8

Browse files
committed
msctl: make a backup of version manifest in forced update
1 parent e7516c0 commit 7cea2a8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

msctl

+2
Original file line numberDiff line numberDiff line change
@@ -2508,6 +2508,8 @@ case "$1" in
25082508
# Handle the force option.
25092509
if [ "$1" = "force-update" ]; then
25102510
if [ -s $VERSIONS_JSON ]; then
2511+
# Make a backup copy of the version_manifest.json file.
2512+
cp -fp "$VERSIONS_JSON" "$VERSIONS_JSON.bak"
25112513
printf "Removing cached version manifest.\n"
25122514
fi
25132515
rm -f $VERSIONS_JSON

0 commit comments

Comments
 (0)