summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Gonzalez <roger@rogs.me>2023-10-21 18:53:55 -0300
committerRoger Gonzalez <roger@rogs.me>2023-10-21 18:53:55 -0300
commita0486d9f6b5606f0b8aa0d175d84c1c55a684076 (patch)
treece90db14cb6c46210f5638559feab3df63e4f81c
parenteb13d6e0da36824e31550084da92efcffd869f13 (diff)
Fixed unreachable bug
-rw-r--r--docs.org8
-rw-r--r--install.sh8
2 files changed, 8 insertions, 8 deletions
diff --git a/docs.org b/docs.org
index da44753..0109f71 100644
--- a/docs.org
+++ b/docs.org
@@ -110,12 +110,12 @@ This function verifies that the dependencies are installed. ~Docker~ and ~docker
for YAMS to work.
#+begin_src bash
-check_dependencies() {
+check_dependencides() {
if command -v "$1" &> /dev/null; then
- send_success_message "$1 exists ✅"
+ send_success_message "$1 exists ✅ "
else
- echo -e "\e[31m⚠️ $1 not found! ⚠️\e[0m"
- read -p "Do you want YAMS to install docker and docker-compose? (IT ONLY WORKS ON DEBIAN AND UBUNTU) [y/N]: " install_docker
+ echo -e $(printf "\e[31m ⚠️ $1 not found! ⚠️\e[0m")
+ read -p "Do you want YAMS to install docker and docker-compose? IT ONLY WORKS ON DEBIAN AND UBUNTU! [y/N]: " install_docker
install_docker=${install_docker:-"n"}
if [ "$install_docker" == "y" ]; then
diff --git a/install.sh b/install.sh
index 6b29335..802a395 100644
--- a/install.sh
+++ b/install.sh
@@ -32,12 +32,12 @@ send_error_message() {
exit 255
}
-check_dependencies() {
+check_dependencides() {
if command -v "$1" &> /dev/null; then
- send_success_message "$1 exists ✅"
+ send_success_message "$1 exists ✅ "
else
- echo -e "\e[31m⚠️ $1 not found! ⚠️\e[0m"
- read -p "Do you want YAMS to install docker and docker-compose? (IT ONLY WORKS ON DEBIAN AND UBUNTU) [y/N]: " install_docker
+ echo -e $(printf "\e[31m ⚠️ $1 not found! ⚠️\e[0m")
+ read -p "Do you want YAMS to install docker and docker-compose? IT ONLY WORKS ON DEBIAN AND UBUNTU! [y/N]: " install_docker
install_docker=${install_docker:-"n"}
if [ "$install_docker" == "y" ]; then