From fa4030a04f15aedd21514f9ec7c69c5d53f6311c Mon Sep 17 00:00:00 2001 From: Daniel Molkentin Date: Thu, 29 Apr 2021 19:28:45 +0200 Subject: When claiming to be in rome, do as the romans do No bashisms when claiming #!/bin/bash --- serve.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/serve.sh b/serve.sh index 537c980..d8119b6 100755 --- a/serve.sh +++ b/serve.sh @@ -3,10 +3,10 @@ php_bin="" port=8000 -for try_bin in {php7,php} +for try_bin in php7 php do php_bin=$(command -v $try_bin) - if [[ -n "$php_bin" ]] + if [ -n "$php_bin" ] then break fi -- cgit v1.2.3