Skip to content

Commit f4180ae

Browse files
committed
chore: improve script output
Signed-off-by: Josef Andersson <josef.andersson@digg.se>
1 parent a291757 commit f4180ae

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

scripts/setup.sh

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,22 +51,19 @@ check_for_updates() {
5151
local current="$1"
5252
local latest="$2"
5353

54-
print_info "devtools installed: $current"
55-
5654
if [[ "$current" != "$latest" && "$latest" != "unknown" ]]; then
5755
# Auto-update in CI/non-interactive mode, prompt in interactive mode
5856
if [[ "${CI:-false}" == "true" ]] || [[ ! -t 0 ]]; then
59-
print_info "Auto-updating to $latest (non-interactive mode)"
57+
print_info "Auto-updating devtools to $latest"
6058
update_to_version "$latest"
6159
else
60+
print_info "devtools installed: $current"
6261
read -p "Update available: $latest. Update? [y/N] " -n 1 -r
6362
printf "\n"
6463
if [[ $REPLY =~ ^[Yy]$ ]]; then
6564
update_to_version "$latest"
6665
fi
6766
fi
68-
else
69-
print_success "Already at latest version"
7067
fi
7168
}
7269

0 commit comments

Comments
 (0)