replace which with docker compose version in installer
This commit is contained in:
parent
902981c358
commit
24f32adbf2
10
install
10
install
@ -29,11 +29,11 @@ install() {
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
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 ]
|
||||
then
|
||||
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 ]
|
||||
then
|
||||
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 clidmanager='sudo clidmanager'"/d ~/.bashrc && \
|
||||
@ -69,7 +69,7 @@ remove() [
|
||||
echo
|
||||
read -p "Enter zum beenden drücken..."
|
||||
|
||||
]
|
||||
}
|
||||
|
||||
which clidmanager >/dev/null
|
||||
if [ $? -eq 0 ]
|
||||
@ -89,7 +89,7 @@ if [ $? -eq 0 ]
|
||||
|
||||
esac
|
||||
else
|
||||
which compose >/dev/null || which docker-compose >/dev/null
|
||||
docker compose version
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
echo "Docker Compose wird für die verwendung von clidmanager benötigt."
|
||||
|
Loading…
x
Reference in New Issue
Block a user