ipcam_capture: check for mountpoint
This commit is contained in:
parent
014f310353
commit
72a45b8521
@ -94,6 +94,8 @@ done
|
||||
[ -z "$CREDS" ] && die "You must specify credentials (--creds)."
|
||||
validate_channel "$CHANNEL"
|
||||
|
||||
mountpoint "$(dirname "$OUTDIR")" || die "$(dirname "$OUTDIR") is not a mountpint!"
|
||||
|
||||
if [ ! -d "${OUTDIR}" ]; then
|
||||
mkdir "${OUTDIR}" || die "Failed to create ${OUTDIR}/${NAME}!"
|
||||
echo "Created $OUTDIR."
|
||||
|
Loading…
x
Reference in New Issue
Block a user