Skip to content

Commit

Permalink
Implemented docker compose dependency check
Browse files Browse the repository at this point in the history
  • Loading branch information
GiuseppeGalilei authored Apr 8, 2024
1 parent 0fa42d8 commit 14ed535
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions OneLiner/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,13 @@ if ! docker info > /dev/null 2>&1; then
exit 1
fi

docker compose &>/dev/null

if [ $? -ne 0 ]; then
echo "You need to install docker compose (v2) to continue"
exit 1
fi

#ask for installation directory, default to home
read -p "Enter an absolute path to place the installation directory (or press Enter for the home folder): " user_input
path=${user_input:-$HOME}
Expand Down

0 comments on commit 14ed535

Please sign in to comment.