diff options
-rwxr-xr-x | tools/ipcam_capture.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/ipcam_capture.sh b/tools/ipcam_capture.sh index 705c920..d495e51 100755 --- a/tools/ipcam_capture.sh +++ b/tools/ipcam_capture.sh @@ -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." |