فهرست منبع

Modified pip compose check

DerLinkman 3 سال پیش
والد
کامیت
b8ec244d92
1فایلهای تغییر یافته به همراه6 افزوده شده و 2 حذف شده
  1. 6 2
      update.sh

+ 6 - 2
update.sh

@@ -203,8 +203,12 @@ else
     DC_DL_SUFFIX=legacy
     DC_DL_SUFFIX=legacy
   fi
   fi
   sleep 1
   sleep 1
-  if [[ ! -z $(which pip) && $(pip list --local 2>&1 | grep -v DEPRECATION | grep -c docker-compose) == 1 ]]; then
-    true
+  if [[ -z $(which pip) && $(pip list --local 2>&1 | grep -v DEPRECATION | grep -c docker-compose) == 1 ]]; then
+    echo -e "\e[33mFound a docker-compose Version installed with pip!\e[0m"
+    echo -e "\e[33mPlease uninstall the pip Version of docker-compose since it doesn´t support Versions higher than 1.29.2.\e[0m"
+    sleep 2
+    echo -e "\e[33mExiting...\e[0m"
+    exit 1
     #prevent breaking a working docker-compose installed with pip
     #prevent breaking a working docker-compose installed with pip
   elif [[ $(curl -sL -w "%{http_code}" https://www.servercow.de/docker-compose/latest.php?vers=${DC_DL_SUFFIX} -o /dev/null) == "200" ]]; then
   elif [[ $(curl -sL -w "%{http_code}" https://www.servercow.de/docker-compose/latest.php?vers=${DC_DL_SUFFIX} -o /dev/null) == "200" ]]; then
     LATEST_COMPOSE=$(curl -#L https://www.servercow.de/docker-compose/latest.php)
     LATEST_COMPOSE=$(curl -#L https://www.servercow.de/docker-compose/latest.php)