diff --git a/test.sh b/test.sh index eff468e..23e4922 100755 --- a/test.sh +++ b/test.sh @@ -32,5 +32,5 @@ function myfunc() echo "ok" } -if [ $(detect_os[1]) = "debian" ]; then echo 'YES'; fi +if [ ${$(detect_os OS)[1]} = "debian" ]; then echo 'YES'; fi