From 23c97cd2c0e7d4c4f0e7bd8c62755d2de0483321 Mon Sep 17 00:00:00 2001 From: 0xboobface <0xboobface@gmail.com> Date: Sat, 22 Feb 2020 12:28:45 +0100 Subject: [PATCH] Add quotes around paths in pp script --- client/src/main/resources/pp.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/client/src/main/resources/pp.sh b/client/src/main/resources/pp.sh index b4e829e4..fd26ea0b 100755 --- a/client/src/main/resources/pp.sh +++ b/client/src/main/resources/pp.sh @@ -16,13 +16,13 @@ TIME=$(date --date="@$5" +%d.%m.%Y_%H:%M) MP4=$(echo "$1/$4_$3_$TIME.mp4") # remux ts to mp4 -ffmpeg -i $2 -c:v copy -c:a copy -f mp4 $MP4 +ffmpeg -i "$2" -c:v copy -c:a copy -f mp4 "$MP4" # move mp4 to target directory -mv $MP4 /tmp +mv "$MP4" /tmp # delete the original .ts file -rm $2 +rm "$2" # delete the directory of the recording -rm -r $1 +rm -r "$1"