Skip to content

Commit

Permalink
Fix scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Limych committed May 13, 2020
1 parent 03506dd commit f7a3bb2
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
4 changes: 3 additions & 1 deletion script/bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
# Stop on errors
set -e

cd "$(dirname "$0")/.."
ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." >/dev/null 2>&1 && pwd )"

cd "${ROOT}"

echo "Installing development dependencies..."
python3 -m pip install tox colorlog pre-commit $(grep mypy requirements-dev.txt)
2 changes: 1 addition & 1 deletion script/dev-deploy
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ die() {



ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." >/dev/null 2>&1 && pwd )"

HASSIO_CONFIG="${ROOT}/dev-config"

Expand Down
4 changes: 3 additions & 1 deletion script/setup
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
# Stop on errors
set -e

cd "$(dirname "$0")/.."
ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." >/dev/null 2>&1 && pwd )"

cd "${ROOT}"
script/bootstrap

pre-commit install
Expand Down
4 changes: 3 additions & 1 deletion script/update
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# Stop on errors
set -e

cd "$(dirname "$0")/.."
ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." >/dev/null 2>&1 && pwd )"

cd "${ROOT}"
git pull
git submodule update

0 comments on commit f7a3bb2

Please sign in to comment.