Skip to content

Commit 028d2a5

Browse files
author
ggtrd
committed
improve install from given publication
1 parent 3b54aa0 commit 028d2a5

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

bashpack.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1248,9 +1248,14 @@ install_cli() {
12481248

12491249
display_info "end of self installation."
12501250

1251-
if [ "$(exists_command "$NAME_ALIAS")" = "exists" ]; then
1252-
display_success "$NAME $($NAME_ALIAS --version) ($($NAME_ALIAS --publication)) is ready."
1251+
1252+
# Success message
1253+
if [ "$chosen_publication" = "" ] || [ "$chosen_publication" = "$($NAME_ALIAS --publication)" ]; then
1254+
if [ "$(exists_command "$NAME_ALIAS")" = "exists" ]; then
1255+
display_success "$NAME $($NAME_ALIAS --version) ($($NAME_ALIAS --publication)) is ready."
1256+
fi
12531257
fi
1258+
12541259
else
12551260
verify_cli_commands
12561261
fi

0 commit comments

Comments
 (0)