From 296d2360ce101b465e886e84bdd545cd64276781 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Mon, 9 Aug 2010 14:05:25 -0400 Subject: Tighten: tab-indent; use sh -e (not bash); drop trailing exit. --- localbackupiceweaselprofile | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) (limited to 'localbackupiceweaselprofile') 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 @@ -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 -- cgit v1.2.3