From 102fdd69f4f24389455806aa49b1befab5c8f77c Mon Sep 17 00:00:00 2001 From: sech1p Date: Sun, 14 Mar 2021 16:07:06 +0100 Subject: [PATCH] Add checking if "temp" folder exists if not then it creates a temp folder! (prevents watch.shs from broken* (*read as: blank page and temporary files saved in wrong place) --- webroot/watch.shs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/webroot/watch.shs b/webroot/watch.shs index a31a3a9..b69ece7 100755 --- a/webroot/watch.shs +++ b/webroot/watch.shs @@ -1,5 +1,9 @@ #!/bin/bash +if [[ ! -d "temp" ]]; then + mkdir "temp" +fi + declare -A strings if [[ ! $(which haruhi-dl) ]]; then