mirror of
https://github.com/arkenfox/user.js.git
synced 2024-10-01 01:35:52 -04:00
Back up prefs.js to prefsjs_backups
directory (#1514)
This commit is contained in:
parent
996881aef1
commit
ded7c01a08
@ -69,7 +69,8 @@ fStart() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
fFF_check
|
fFF_check
|
||||||
bakfile="prefs.js.backup.$(date +"%Y-%m-%d_%H%M")"
|
mkdir -p prefsjs_backups
|
||||||
|
bakfile="prefsjs_backups/prefs.js.backup.$(date +"%Y-%m-%d_%H%M")"
|
||||||
mv prefs.js "${bakfile}" || fQuit 1 "Operation aborted.\nReason: Could not create backup file $bakfile"
|
mv prefs.js "${bakfile}" || fQuit 1 "Operation aborted.\nReason: Could not create backup file $bakfile"
|
||||||
echo -e "\nprefs.js backed up: $bakfile"
|
echo -e "\nprefs.js backed up: $bakfile"
|
||||||
echo "Cleaning prefs.js..."
|
echo "Cleaning prefs.js..."
|
||||||
|
Loading…
Reference in New Issue
Block a user