only check for existenve of local path if we need it
This commit is contained in:
parent
da46e88982
commit
b09a7b16cc
2
bare.sh
2
bare.sh
|
@ -319,7 +319,6 @@ for f in $REPOSTOBACKUP; do
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
|
|
||||||
if ! [[ -e ${DATAPATH} ]]; then
|
if ! [[ -e ${DATAPATH} ]]; then
|
||||||
log "Error: ${DATAPATH} doesn't exist"
|
log "Error: ${DATAPATH} doesn't exist"
|
||||||
|
@ -331,6 +330,7 @@ for f in $REPOSTOBACKUP; do
|
||||||
log "Error: ${DATAPATH} exists but appears to be empty"
|
log "Error: ${DATAPATH} exists but appears to be empty"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue