summaryrefslogtreecommitdiff
path: root/bin/livedump
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2017-05-10 11:53:12 +0200
committerJonas Smedegaard <dr@jones.dk>2017-05-10 11:53:12 +0200
commit100d12d8fd940bd03fd0e7f1d6ae53afaa0106cd (patch)
treed3c26018f785d8cdd03992123f6bb5096f24ecf7 /bin/livedump
parent6e7fe422bb665db3870d12a769037faf0f0410ad (diff)
Fix create paths.
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"