Skip to content

Commit

Permalink
fix: sed re error trailing backslash on FreeBSD (#1046). (#1047)
Browse files Browse the repository at this point in the history
  • Loading branch information
hadret committed Sep 13, 2021
1 parent 30d27cb commit 47e8fb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/commands/command-latest.bash
Expand Up @@ -25,7 +25,7 @@ latest_command() {
# pattern from xxenv-latest (https://github.com/momo-lab/xxenv-latest)
versions=$(asdf list-all "$plugin_name" "$query" |
grep -vE "(^Available versions:|-src|-dev|-latest|-stm|[-\\.]rc|-alpha|-beta|[-\\.]pre|-next|(a|b|c)[0-9]+|snapshot|master)" |
sed 's/^\s\+//' |
sed 's/^[[:space:]]\+//' |
tail -1)
if [ -z "${versions}" ]; then
exit 1
Expand Down

0 comments on commit 47e8fb0

Please sign in to comment.