replace which with docker compose version in installer
This commit is contained in:
		
							
								
								
									
										10
									
								
								install
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								install
									
									
									
									
									
								
							| @@ -29,11 +29,11 @@ install() { | |||||||
|     if [ $? -ne 0 ] |     if [ $? -ne 0 ] | ||||||
|         then |         then | ||||||
|             echo "alias dm='sudo clidmanager'" >> ~/.bashrc |             echo "alias dm='sudo clidmanager'" >> ~/.bashrc | ||||||
|     exists2=$(grep -i "alias clidmanager='sudo clidmanager'" ~/.bashrc)         |     exists=$(grep -i "alias clidmanager='sudo clidmanager'" ~/.bashrc)         | ||||||
|     elif [ $? -ne 0 ] |     elif [ $? -ne 0 ] | ||||||
|         then |         then | ||||||
|             echo "alias clidmanager='sudo clidmanager'" >> ~/.bashrc |             echo "alias clidmanager='sudo clidmanager'" >> ~/.bashrc | ||||||
|     exists3=$(grep -i "alias dw='source docker_work'" ~/.bashrc) |     exists=$(grep -i "alias dw='source docker_work'" ~/.bashrc) | ||||||
|     elif [ $? -ne 0 ] |     elif [ $? -ne 0 ] | ||||||
|         then |         then | ||||||
|             echo "alias dw='source docker_work'" >> ~/.bashrc  |             echo "alias dw='source docker_work'" >> ~/.bashrc  | ||||||
| @@ -57,7 +57,7 @@ install() { | |||||||
|  |  | ||||||
| } | } | ||||||
|  |  | ||||||
| remove() [ | remove() { | ||||||
|  |  | ||||||
|     sed -i -e /"alias dm='sudo clidmanager'"/d ~/.bashrc && \ |     sed -i -e /"alias dm='sudo clidmanager'"/d ~/.bashrc && \ | ||||||
|     sed -i -e /"alias clidmanager='sudo clidmanager'"/d ~/.bashrc && \ |     sed -i -e /"alias clidmanager='sudo clidmanager'"/d ~/.bashrc && \ | ||||||
| @@ -69,7 +69,7 @@ remove() [ | |||||||
|     echo |     echo | ||||||
|     read -p "Enter zum beenden drücken..." |     read -p "Enter zum beenden drücken..." | ||||||
|  |  | ||||||
| ] | } | ||||||
|  |  | ||||||
| which clidmanager >/dev/null | which clidmanager >/dev/null | ||||||
| if [ $? -eq 0 ] | if [ $? -eq 0 ] | ||||||
| @@ -89,7 +89,7 @@ if [ $? -eq 0 ] | |||||||
|  |  | ||||||
|         esac |         esac | ||||||
| else  | else  | ||||||
|     which compose >/dev/null || which docker-compose >/dev/null |     docker compose version | ||||||
|     if [ $? -ne 0 ] |     if [ $? -ne 0 ] | ||||||
|         then |         then | ||||||
|         echo "Docker Compose wird für die verwendung von clidmanager benötigt." |         echo "Docker Compose wird für die verwendung von clidmanager benötigt." | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user