Skip to content

Commit

Permalink
Updated update.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
retrodaredevil committed Jul 3, 2021
1 parent 0d4c956 commit dea5c87
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@
BASEDIR=$(dirname "$0")
cd "$BASEDIR" || exit 1

git pull
git pull || (echo "Failed to pull!"; exit 1)
program/download_solarthing.sh || exit 1
program/graphql_download_solarthing.sh || exit 1

FULLDIR=$(pwd)
if [ "$FULLDIR" = "/opt/solarthing" ]; then
other/linux/update_perms.sh continue
echo
other/linux/update_perms.sh continue || (echo "The above output may look scary, but you need to run this using sudo to update permissions"; exit 1)
else
echo Not updating perms because installed in non-standard location
fi
program/download_solarthing.sh
program/graphql_download_solarthing.sh

0 comments on commit dea5c87

Please sign in to comment.