From e8a6fe51e7bc561d98f7c8a3756965f49ad18a18 Mon Sep 17 00:00:00 2001 From: Alex Date: Sun, 18 Sep 2022 12:51:15 +0100 Subject: [PATCH] shell.sh now falls back to docker compose (no dash) --- shell.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/shell.sh b/shell.sh index b91ad58f..60499b53 100755 --- a/shell.sh +++ b/shell.sh @@ -1,3 +1,7 @@ #!/bin/sh -docker-compose exec --user devilbox php bash -l +if hash docker-compose 2>/dev/null; then + docker-compose exec --user devilbox php bash -l +else + docker compose exec --user devilbox php bash -l +fi