Files
galias-d/galias-d.sh

35 lines
479 B
Bash
Raw Normal View History

2024-08-25 11:07:07 +05:00
#!/bin/bash
2026-02-20 21:09:55 +05:00
set -x
# Цвета для вывода
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
BLUE='\033[0;34m'
NC='\033[0m' # No Color
# Форматирование текста
function msgerr()
{
echo -e "${RED}$1${NC}"
}
function msgok()
{
echo -e "${GREEN}$1${NC}"
}
function msgpr()
{
echo -e "\e[35m$1${NC}"
2024-08-25 11:07:07 +05:00
}
2026-02-20 21:09:55 +05:00
msgpr "hey! this is talias-d!"
2024-08-25 11:07:07 +05:00
2026-02-20 21:09:55 +05:00
msgerr "hey! this is ERROR!"
msgok "hey! this is OK!"
2024-08-25 11:07:07 +05:00
2026-02-20 21:09:55 +05:00
check_apt() {
sudo apt install $1 -y
2024-08-25 11:07:07 +05:00
}