summaryrefslogtreecommitdiff
path: root/localbackupiceweaselprofile
diff options
context:
space:
mode:
Diffstat (limited to 'localbackupiceweaselprofile')
-rwxr-xr-xlocalbackupiceweaselprofile4
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/"