From bc007f10eebf3ab4981d168f59cf0394deb26d38 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Mon, 9 Aug 2010 19:18:54 -0400 Subject: Tighten localbackupiceweaselprofile: shorten conditional. --- localbackupiceweaselprofile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'localbackupiceweaselprofile') diff --git a/localbackupiceweaselprofile b/localbackupiceweaselprofile index 78a6d6c..5323402 100755 --- a/localbackupiceweaselprofile +++ b/localbackupiceweaselprofile @@ -22,9 +22,7 @@ exit1() { [ -d "${MOZDIR}/${PROFILE}" || exit1 "Profile $PROFILE missing. Perhaps set PROFILE in $CFGFILE" -if test -z "$(mount | grep -F "${MOZDIR}/${PROFILE}" )"; then - mount "${MOZDIR}/${PROFILE}" -fi +[ -n "$(mount | grep -F "${MOZDIR}/${PROFILE}" )" || mount "${MOZDIR}/${PROFILE}" if test -f "${MOZDIR}/${PROFILE}/.unpacked"; then rsync -av --delete --exclude .unpacked "${MOZDIR}/${PROFILE}/" "${MOZDIR}/profile/" -- cgit v1.2.3