From 96b79db2e050cb57b08c71eaaeafdb704adb365a Mon Sep 17 00:00:00 2001 From: Tim Date: Wed, 14 Aug 2024 11:54:09 +0200 Subject: [PATCH] Trying to remove duplicate file bug --- setup.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/setup.sh b/setup.sh index 1515e67..660842f 100755 --- a/setup.sh +++ b/setup.sh @@ -45,8 +45,14 @@ sudo apt install vlc python3-rpi.gpio git -y echo -e "${GREEN}======== Holle Datein ========${NOCOLOR}" -mkdir ~/PiVideo/ ~/PiVideo/videos/ -cd ~/PiVideo/ +if ls ~/PiVideo/ 1> /dev/null 2>&1; # Checking if file exsists +then + echo "Folders Already Exist Scipping" +else + echo "Creating Folders" + mkdir ~/PiVideo/ ~/PiVideo/videos/ + cd ~/PiVideo/ +fi GH_URL="https://raw.githubusercontent.com/miT-nib-hcI/PiVideo/main/"