blob: 480f920d11fb37a85ffd450bce7d72f2b44c1396 (
plain)
- #!/bin/sh
- set -e
- # Based on script by Micah Anderson <micah@riseup.net>
- MOZDIR="${HOME}/.mozilla/firefox"
- # Change this to match your correct profile
- PROFILE="8xrm3et5.default"
- if test -z "$(mount | grep -F "${MOZDIR}/${PROFILE}" )"; then
- mount "${MOZDIR}/${PROFILE}"
- fi
- if test -f "${MOZDIR}/${PROFILE}/.unpacked"; then
- rsync -av --delete --exclude .unpacked "${MOZDIR}/${PROFILE}/" "${MOZDIR}/profile/"
- else
- rsync -av "${MOZDIR}/profile/" "${MOZDIR}/$PROFILE/"
- touch "${MOZDIR}/${PROFILE}/.unpacked"
- fi
|