summaryrefslogtreecommitdiff
path: root/localbackupiceweaselprofile
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2010-08-09 14:05:25 -0400
committerJonas Smedegaard <dr@jones.dk>2010-08-09 14:05:25 -0400
commit296d2360ce101b465e886e84bdd545cd64276781 (patch)
treef3571161d776fbcfee927997215efc5696d977c2 /localbackupiceweaselprofile
parentfdb8ec301de8b646dc88e5d2fbd64743a0c2dcf8 (diff)
Tighten: tab-indent; use sh -e (not bash); drop trailing exit.
Diffstat (limited to 'localbackupiceweaselprofile')
-rwxr-xr-xlocalbackupiceweaselprofile20
1 files changed, 9 insertions, 11 deletions
diff --git a/localbackupiceweaselprofile b/localbackupiceweaselprofile
index 2fc2c54..6e1d4c9 100755
--- a/localbackupiceweaselprofile
+++ b/localbackupiceweaselprofile
@@ -1,4 +1,6 @@
-#!/bin/bash
+#!/bin/sh
+
+set -e
# Based on script by Micah Anderson <micah@riseup.net>
@@ -7,17 +9,13 @@ 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 "${HOME}/.mozilla/firefox/${PROFILE}" )"; then
+ mount "${HOME}/.mozilla/firefox/${PROFILE}"
fi
-if test -f "${PROFILE}/.unpacked"
-then
- rsync -av --delete --exclude .unpacked ./"$PROFILE"/ ./profile/
+if test -f "${PROFILE}/.unpacked"; then
+ rsync -av --delete --exclude .unpacked ./"$PROFILE"/ ./profile/
else
- rsync -av ./profile/ ./"$PROFILE"/
- touch "${PROFILE}/.unpacked"
+ rsync -av ./profile/ ./"$PROFILE"/
+ touch "${PROFILE}/.unpacked"
fi
-
-exit