From f1d18dcd183eeddd2d25b9a413d3a7f1f90bda20 Mon Sep 17 00:00:00 2001 From: Chris McCormick Date: Sun, 16 Jun 2024 19:58:19 +0100 Subject: [PATCH] Fix shellscript conditionals to POSIX compat. Fixes #358 --- piku | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/piku b/piku index dee642f..b315dbf 100755 --- a/piku +++ b/piku @@ -7,7 +7,8 @@ # git config --get remote.paas.url remote_name="piku" -if [[ "$1" == "--remote" || "$1" == "-r" ]]; then +if [ "$1" = "--remote" ] || [ "$1" = "-r" ] +then shift remote_name="$1" shift @@ -34,7 +35,7 @@ fi out "Piku remote operator." -if [[ "$remote" = "" || "$remote" = ":" ]]; +if [ "$remote" = "" ] || [ "$remote" = ":" ] then out out "Error: no piku server configured."