Skip to content

Commit

Permalink
fix: Updated home pro installation command (Thanks @DJBenson)
Browse files Browse the repository at this point in the history
Added f flag to the rm command otherwise the script always fails on
first run as the directory never exists.
  • Loading branch information
BottlecapDave committed Jun 22, 2024
2 parents e20489b + 62e2b73 commit 5502619
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 5502619

Please sign in to comment.