summaryrefslogtreecommitdiff
path: root/localbackupiceweaselprofile
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2010-08-09 14:10:53 -0400
committerJonas Smedegaard <dr@jones.dk>2010-08-09 14:10:53 -0400
commit069691356e26d5f5a3668912aab1585535de4593 (patch)
treec1a04648574c0190e1419c75abf2d397e87d8d93 /localbackupiceweaselprofile
parent296d2360ce101b465e886e84bdd545cd64276781 (diff)
Tighten: set MOZDIR (instead of cd'ing): qoute full paths (not vars only).
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