diff options
author | Jonas Smedegaard <dr@jones.dk> | 2010-08-09 19:18:54 -0400 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2010-08-09 19:18:54 -0400 |
commit | bc007f10eebf3ab4981d168f59cf0394deb26d38 (patch) | |
tree | 5c90e29de592563c4187373d68fab458eff96821 /localbackupiceweaselprofile | |
parent | 16525a1c8a6622b1665e67e4d8977c652a384be3 (diff) |
Tighten localbackupiceweaselprofile: shorten conditional.
Diffstat (limited to 'localbackupiceweaselprofile')
-rwxr-xr-x | localbackupiceweaselprofile | 4 |
1 files changed, 1 insertions, 3 deletions
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/" |