Skip to content

Commit

Permalink
tweak: add conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
hyperupcall committed Feb 19, 2023
1 parent 3a6d35b commit 9936392
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions lib/commands/command-exec.bash
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ shim_exec_command() {
exit 1
fi

ASDF_INTERNAL_PREFIX_PRINTS=yes

exec_shim() {
local plugin_name="$1"
local version="$2"
Expand Down
4 changes: 3 additions & 1 deletion lib/utils.bash
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,9 @@ display_error() {
}

display() {
printf 'asdf: '
if [ "$ASDF_INTERNAL_PREFIX_PRINTS" = 'yes' ]; then
printf 'asdf: '
fi

# shellcheck disable=SC2059
printf "$@"
Expand Down

0 comments on commit 9936392

Please sign in to comment.