summaryrefslogtreecommitdiff
path: root/localbackupiceweaselprofile
diff options
context:
space:
mode:
Diffstat (limited to 'localbackupiceweaselprofile')
-rwxr-xr-xlocalbackupiceweaselprofile16
1 files changed, 8 insertions, 8 deletions
diff --git a/localbackupiceweaselprofile b/localbackupiceweaselprofile
index 6e1d4c9..480f920 100755
--- a/localbackupiceweaselprofile
+++ b/localbackupiceweaselprofile
@@ -4,18 +4,18 @@ 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"
-cd "${HOME}/.mozilla/firefox"
-
-if test -z "$(mount | grep -F "${HOME}/.mozilla/firefox/${PROFILE}" )"; then
- mount "${HOME}/.mozilla/firefox/${PROFILE}"
+if test -z "$(mount | grep -F "${MOZDIR}/${PROFILE}" )"; then
+ mount "${MOZDIR}/${PROFILE}"
fi
-if test -f "${PROFILE}/.unpacked"; then
- rsync -av --delete --exclude .unpacked ./"$PROFILE"/ ./profile/
+if test -f "${MOZDIR}/${PROFILE}/.unpacked"; then
+ rsync -av --delete --exclude .unpacked "${MOZDIR}/${PROFILE}/" "${MOZDIR}/profile/"
else
- rsync -av ./profile/ ./"$PROFILE"/
- touch "${PROFILE}/.unpacked"
+ rsync -av "${MOZDIR}/profile/" "${MOZDIR}/$PROFILE/"
+ touch "${MOZDIR}/${PROFILE}/.unpacked"
fi