From 4f88bcfec8901e33867f1c73148350e57cbfc8e2 Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Sat, 15 Feb 2020 09:49:48 +0100 Subject: [PATCH] fix: compatibility with bash v5 Signed-off-by: Valentin Lab --- bin/compose | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/compose b/bin/compose index 20f05ec..c692cd5 100755 --- a/bin/compose +++ b/bin/compose @@ -182,9 +182,9 @@ get_os() { uname_output="$(uname -s)" case "${uname_output}" in Linux*) - if [[ "$(< /proc/version)" == *@(Microsoft|WSL)* ]]; then + if [[ "$(< /proc/version)" =~ "@(Microsoft|WSL)" ]]; then e wsl - # elif [[ "$(< /proc/version)" == *"@(microsoft|WSL)"* ]]; then + # elif [[ "$(< /proc/version)" =~ "@(microsoft|WSL)" ]]; then # e wsl2 else e linux