From 62e2b7353034cf827b6ba4a9e53698ada718ecbc Mon Sep 17 00:00:00 2001 From: DJBenson Date: Fri, 21 Jun 2024 17:06:45 +0100 Subject: [PATCH] Update setup.sh Added f flag to the rm commend otherwise the script always fails on first run as the directory never exists. --- home_pro_server/setup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/home_pro_server/setup.sh b/home_pro_server/setup.sh index cce048d5..25f70477 100644 --- a/home_pro_server/setup.sh +++ b/home_pro_server/setup.sh @@ -1,10 +1,10 @@ #!/bin/bash set -e -rm -r bottlecapdave_homeassistant_octopus_energy +rm -rf bottlecapdave_homeassistant_octopus_energy mkdir bottlecapdave_homeassistant_octopus_energy cd bottlecapdave_homeassistant_octopus_energy wget https://raw.githubusercontent.com/BottlecapDave/HomeAssistant-OctopusEnergy/develop/home_pro_server/oeha_server.py chmod +x oeha_server.py wget https://raw.githubusercontent.com/BottlecapDave/HomeAssistant-OctopusEnergy/develop/home_pro_server/start_server.sh -chmod +x start_server.sh \ No newline at end of file +chmod +x start_server.sh