From 4af37ba46d72397b993202ad99420e6c5fd7e6f6 Mon Sep 17 00:00:00 2001 From: Wilson Kazuo Mizutani Date: Sun, 20 Jun 2021 18:08:07 -0300 Subject: [PATCH] Make linux-readline support POSIX sh compatible See the following PR's discussion for more details: https://github.com/DhavalKapil/luaver/pull/64 --- luaver | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/luaver b/luaver index 3359a89..2c8e3dd 100755 --- a/luaver +++ b/luaver @@ -428,7 +428,7 @@ __luaver_install_lua() __luaver_print "Unable to detect platform. Using default 'posix'" platform=posix else - if [[ "${version}" =~ 5[.]4[.][0-9]+ ]] + if [ -n "$('echo' "${version}" | 'awk' '/^5\.4\./')" ] then platform="${platform}-readline" fi