Skip to content

Commit

Permalink
Update setup.sh
Browse files Browse the repository at this point in the history
Added f flag to the rm commend otherwise the script always fails on first run as the directory never exists.
  • Loading branch information
DJBenson committed Jun 21, 2024
1 parent e20489b commit 62e2b73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions home_pro_server/setup.sh
Original file line number Diff line number Diff line change
@@ -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
chmod +x start_server.sh

0 comments on commit 62e2b73

Please sign in to comment.