From 100d12d8fd940bd03fd0e7f1d6ae53afaa0106cd Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Wed, 10 May 2017 11:53:12 +0200 Subject: Fix create paths. --- bin/livedump | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin/livedump') diff --git a/bin/livedump b/bin/livedump index e749c63..1485621 100755 --- a/bin/livedump +++ b/bin/livedump @@ -38,13 +38,13 @@ LINKPATH="$BASESTEM.$SUFFIX" SESSIONSTEM=$(date +"$SESSIONPATTERN") SESSIONPATH="$BASESTEM$SESSIONSTEM.$SUFFIX" -mkdir -p "$(dirname "$LINKPATH" "$SESSIONPATH")" +mkdir -p "$(dirname "$LINKPATH")" "$(dirname "$SESSIONPATH")" touch "$SESSIONPATH" [ -z "$LINKPATH" ] | ln -fs "$SESSIONPATH" "$LINKPATH" while true; do SEGMENTSTEM=$(date +"$SEGMENTPATTERN") LOGPATH="$BASESTEM$SESSIONSTEM$SEGMENTSTEM.log" - mkdir -p "$LOGPATH" + mkdir -p "$(dirname "$LOGPATH")" FFREPORT="file=$LOGPATH" \ ffmpeg -hide_banner "$@" pipe: \ >> "$SESSIONPATH" -- cgit v1.2.3