From 069691356e26d5f5a3668912aab1585535de4593 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Mon, 9 Aug 2010 14:10:53 -0400 Subject: Tighten: set MOZDIR (instead of cd'ing): qoute full paths (not vars only). --- localbackupiceweaselprofile | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'localbackupiceweaselprofile') 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 +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 -- cgit v1.2.3