Refactored YAMS to literate #59

Merged
rogs merged 32 commits from feature/refactor-to-literate into v2 2023-10-21 19:17:08 -03:00
2 changed files with 8 additions and 8 deletions
Showing only changes of commit a0486d9f6b - Show all commits

View File

@ -110,12 +110,12 @@ This function verifies that the dependencies are installed. ~Docker~ and ~docker
for YAMS to work. for YAMS to work.
#+begin_src bash #+begin_src bash
check_dependencies() { check_dependencides() {
if command -v "$1" &> /dev/null; then if command -v "$1" &> /dev/null; then
send_success_message "$1 exists ✅" send_success_message "$1 exists ✅ "
else else
echo -e "\e[31m⚠ $1 not found! ⚠️\e[0m" 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 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"} install_docker=${install_docker:-"n"}
if [ "$install_docker" == "y" ]; then if [ "$install_docker" == "y" ]; then

View File

@ -32,12 +32,12 @@ send_error_message() {
exit 255 exit 255
} }
check_dependencies() { check_dependencides() {
if command -v "$1" &> /dev/null; then if command -v "$1" &> /dev/null; then
send_success_message "$1 exists ✅" send_success_message "$1 exists ✅ "
else else
echo -e "\e[31m⚠️ $1 not found! ⚠️\e[0m" 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 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"} install_docker=${install_docker:-"n"}
if [ "$install_docker" == "y" ]; then if [ "$install_docker" == "y" ]; then