summaryrefslogtreecommitdiff
path: root/bin/livedump
diff options
context:
space:
mode:
Diffstat (limited to 'bin/livedump')
-rwxr-xr-xbin/livedump4
1 files changed, 2 insertions, 2 deletions
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"