chore: print warning messages to standard_error

This commit is contained in:
Zaiming (Stone) Shi 2022-09-14 12:48:13 +02:00
parent 62aa9656c4
commit 0606a55a03
2 changed files with 5 additions and 3 deletions

View File

@ -285,4 +285,4 @@ print_warning(Msg) ->
print_warning(Msg, []). print_warning(Msg, []).
print_warning(Msg, Args) -> print_warning(Msg, Args) ->
io:format(user, ?RED ++ Msg ++ ?RESET, Args). io:format(standard_error, ?RED ++ Msg ++ ?RESET, Args).

View File

@ -54,10 +54,12 @@ esac
TAGS=( 'dummy' ) TAGS=( 'dummy' )
TAGS_EXCLUDE=( 'dummy' ) TAGS_EXCLUDE=( 'dummy' )
while read -r vsn; do base_versions="$(./scripts/relup-base-vsns.escript base-vsns "$CUR" ./data/relup-paths.eterm | xargs echo -n)"
for vsn in ${base_versions}; do
# shellcheck disable=SC2207 # shellcheck disable=SC2207
TAGS+=($(git tag -l "${GIT_TAG_PREFIX}${vsn}")) TAGS+=($(git tag -l "${GIT_TAG_PREFIX}${vsn}"))
done < <(./scripts/relup-base-vsns.escript base-vsns "$CUR" ./data/relup-paths.eterm) done
for tag_to_del in "${TAGS_EXCLUDE[@]}"; do for tag_to_del in "${TAGS_EXCLUDE[@]}"; do
TAGS=( "${TAGS[@]/$tag_to_del}" ) TAGS=( "${TAGS[@]/$tag_to_del}" )