1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-11-28 09:24:24 +01:00

(bug) unable to run scripts on systemts with legacy version of docker-compose

This commit is contained in:
Sylvain 2022-05-25 09:53:25 +02:00
parent 04df9c1273
commit 73ee927088
5 changed files with 10 additions and 8 deletions

View File

@ -2,6 +2,8 @@
## next deploy
- Fix a bug: unable to run scripts on systemts with legacy version of docker-compose
## v5.4.1 2022 May 23
- Disable to clicking outside or pressing escape to close sign up modal

View File

@ -4,11 +4,11 @@ docker-compose()
{
if ! docker compose version 1>/dev/null 2>/dev/null
then
if ! \docker-compose version 1>/dev/null 2>/dev/null
if ! command docker-compose version 1>/dev/null 2>/dev/null
then
echo -e "\e[91m[ ❌ ] docker-compose was not found, exiting...\e[39m" && exit 1
else
\docker-compose "$@"
command docker-compose "$@"
fi
else
docker compose "$@"

View File

@ -12,11 +12,11 @@ docker-compose()
{
if ! docker compose version 1>/dev/null 2>/dev/null
then
if ! \docker-compose version 1>/dev/null 2>/dev/null
if ! command docker-compose version 1>/dev/null 2>/dev/null
then
echo -e "\e[91m[ ❌ ] docker-compose was not found, exiting...\e[39m" && exit 1
else
\docker-compose "$@"
command docker-compose "$@"
fi
else
docker compose "$@"

View File

@ -63,11 +63,11 @@ docker-compose()
{
if ! docker compose version 1>/dev/null 2>/dev/null
then
if ! \docker-compose version 1>/dev/null 2>/dev/null
if ! command docker-compose version 1>/dev/null 2>/dev/null
then
echo -e "\e[91m[ ❌ ] docker-compose was not found, exiting...\e[39m" && exit 1
else
\docker-compose "$@"
command docker-compose "$@"
fi
else
docker compose "$@"

View File

@ -47,11 +47,11 @@ docker-compose()
{
if ! docker compose version 1>/dev/null 2>/dev/null
then
if ! \docker-compose version 1>/dev/null 2>/dev/null
if ! command docker-compose version 1>/dev/null 2>/dev/null
then
echo -e "\e[91m[ ❌ ] docker-compose was not found, exiting...\e[39m" && exit 1
else
\docker-compose "$@"
command docker-compose "$@"
fi
else
docker compose "$@"