diff options
Diffstat (limited to 'localbackupiceweaselprofile')
-rwxr-xr-x | localbackupiceweaselprofile | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/localbackupiceweaselprofile b/localbackupiceweaselprofile index 480f920..2aa484e 100755 --- a/localbackupiceweaselprofile +++ b/localbackupiceweaselprofile @@ -4,10 +4,15 @@ set -e # Based on script by Micah Anderson <micah@riseup.net> -MOZDIR="${HOME}/.mozilla/firefox" +CFGFILE="{CFGFILE:-${HOME}/.backupiceweaselprofile}" +if -f "$CFGFILE"; then + . "$CFGFILE" +fi + +MOZDIR="${MOZDIR:-${HOME}/.mozilla/firefox}" # Change this to match your correct profile -PROFILE="8xrm3et5.default" +PROFILE="${PROFILE:-8xrm3et5.default}" if test -z "$(mount | grep -F "${MOZDIR}/${PROFILE}" )"; then mount "${MOZDIR}/${PROFILE}" |