Skip to content

Commit

Permalink
running pwr migrate after pwrup
Browse files Browse the repository at this point in the history
  • Loading branch information
nerfZael committed Sep 17, 2023
1 parent 5087154 commit bf873b2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pwrup/pwrup
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ EOF
fi
done

say "run 'pwr migrate' to update local configuration to the latest version"
migrate

# Install by cloning the repo with the provided branch/tag
else
Expand Down Expand Up @@ -195,7 +195,7 @@ EOF
# --root appends /bin to the directory it is given, so we pass PWR_DIR.
ensure cargo install --path ./packages/pwr --bins --locked --force --root "$PWR_DIR"

say "done"
migrate
fi
}

Expand Down Expand Up @@ -249,6 +249,10 @@ ensure() {
if ! "$@"; then err "command failed: $*"; fi
}

migrate() {
ensure pwr migrate
}

# Downloads $1 into $2 or stdout
download() {
if [ "$2" ]; then
Expand Down

0 comments on commit bf873b2

Please sign in to comment.