From bf873b25a5a83ea3bbd3925a69da70cd307f27f5 Mon Sep 17 00:00:00 2001 From: nerfZael Date: Sun, 17 Sep 2023 22:20:50 +0200 Subject: [PATCH] running pwr migrate after pwrup --- pwrup/pwrup | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pwrup/pwrup b/pwrup/pwrup index 2d79a66..9537fd5 100644 --- a/pwrup/pwrup +++ b/pwrup/pwrup @@ -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 @@ -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 } @@ -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