From 6dbcf1d38b2cadc7349f603f19dc48ef2f0ba996 Mon Sep 17 00:00:00 2001 From: Filip Chabik Date: Sun, 12 Sep 2021 15:41:08 +0200 Subject: [PATCH] fix: sed re error trailing backslash on FreeBSD (#1046). --- lib/commands/command-latest.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/commands/command-latest.bash b/lib/commands/command-latest.bash index 940261840..3610dcf55 100644 --- a/lib/commands/command-latest.bash +++ b/lib/commands/command-latest.bash @@ -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