Skip to content

Commit

Permalink
exit on missing prereqs
Browse files Browse the repository at this point in the history
  • Loading branch information
Xtigyro authored Oct 20, 2020
1 parent 76fe7e6 commit 44bb02b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bin/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,22 +35,28 @@ fi
if ! `command -v docker >/dev/null 2>&1` ; then
if [[ "$INSTALL_CMD" != 'false' ]] ; then
echo -e "\n${LIGHT_RED}\u2717 \"Docker Runtime\"${NC} not installed.\nPlease run: ${LIGHT_GREEN}sudo $INSTALL_CMD install -y $DOCKER_PKG${NC}"
exit 11
else
echo -e "\n${LIGHT_RED}\u2717${NC} Please install ${LIGHT_RED}\"Docker Runtime\"${NC}."
exit 11
fi
fi
if ! `command -v curl >/dev/null 2>&1` ; then
if [[ "$INSTALL_CMD" != 'false' ]] ; then
echo -e "\n${LIGHT_RED}\u2717 \"curl\"${NC} not installed.\nPlease run: ${LIGHT_GREEN}sudo $INSTALL_CMD install -y curl${NC}"
exit 11
else
echo -e "\n${LIGHT_RED}\u2717${NC} Please install ${LIGHT_RED}\"curl\"${NC}."
exit 11
fi
fi
if ! `command -v wget >/dev/null 2>&1` ; then
if [[ "$INSTALL_CMD" != 'false' ]] ; then
echo -e "\n${LIGHT_RED}\u2717 \"wget\"${NC} not installed.\nPlease run: ${LIGHT_GREEN}sudo $INSTALL_CMD install -y wget${NC}"
exit 11
else
echo -e "\n${LIGHT_RED}\u2717${NC} Please install ${LIGHT_RED}\"wget\"${NC}."
exit 11
fi
fi

Expand Down

0 comments on commit 44bb02b

Please sign in to comment.