Fix shellscript conditionals to POSIX compat.

Fixes #358
pull/359/head
Chris McCormick 2024-06-16 19:58:19 +01:00
rodzic b9be24f09e
commit f1d18dcd18
1 zmienionych plików z 3 dodań i 2 usunięć

5
piku
Wyświetl plik

@ -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."