summaryrefslogtreecommitdiff
path: root/localbackupiceweaselprofile
blob: c636629f4735d4bc0a38a4a47aa7c7d7578f5c16 (plain)
  1. #!/bin/bash
  2. # Change this to match your correct profile
  3. PROFILE="8xrm3et5.default"
  4. cd "${HOME}/.mozilla/firefox"
  5. if test -z "$(mount | grep -F "${HOME}/.mozilla/firefox/${PROFILE}" )"
  6. then
  7. mount "${HOME}/.mozilla/firefox/${PROFILE}"
  8. fi
  9. if test -f "${PROFILE}/.unpacked"
  10. then
  11. rsync -av --delete --exclude .unpacked ./"$PROFILE"/ ./profile/
  12. else
  13. rsync -av ./profile/ ./"$PROFILE"/
  14. touch "${PROFILE}/.unpacked"
  15. fi
  16. exit