some fix (todo is still fix ubuntu and garuda)

This commit is contained in:
Snowy-Fluffy
2025-10-11 23:24:47 +03:00
parent 1ac9029a99
commit 81a1676786
2 changed files with 3 additions and 3 deletions

View File

@@ -151,7 +151,7 @@ install_zapret() {
reboot reboot
;; ;;
[Nn]* ) [Nn]* )
TPUT_E $TPUT_E
exit 1 exit 1
;; ;;
* ) * )
@@ -259,8 +259,8 @@ uninstall_zapret() {
rm -f /opt/zapret-ver rm -f /opt/zapret-ver
echo "Удаляю zapret..." echo "Удаляю zapret..."
sleep 3 sleep 3
TPUT_E
echo "Запрет удален" echo "Запрет удален"
$TPUT_E
exit exit
;; ;;
* ) * )

View File

@@ -14,7 +14,7 @@ install_dependencies() {
case "$1" in case "$1" in
arch|artix|cachyos|endeavouros|manjaro|garuda) echo "$SUDO pacman -Syu --noconfirm && $SUDO pacman -S --noconfirm --needed git" ;; arch|artix|cachyos|endeavouros|manjaro|garuda) echo "$SUDO pacman -Syu --noconfirm && $SUDO pacman -S --noconfirm --needed git" ;;
debian|ubuntu|mint) echo "$SUDO apt update -y && $SUDO apt install -y git" ;; debian|ubuntu|mint) echo "$SUDO apt update -y && $SUDO apt install -y git" ;;
fedora|almalinux|rocky|rhel|centos|oracle|redos) echo "if command -v dnf >/dev/null 2>&1; then $SUDO dnf check-update -y && $SUDO dnf install -y git; else $SUDO yum makecache -y && $SUDO yum install -y git; fi" ;; fedora|almalinux|rocky|rhel|centos|oracle|redos) echo "if command -v dnf >/dev/null 2>&1; then $SUDO dnf update -y && $SUDO dnf install -y git; else $SUDO yum makecache -y && $SUDO yum install -y git; fi" ;;
void) echo "$SUDO xbps-install -S && $SUDO xbps-install -y git" ;; void) echo "$SUDO xbps-install -S && $SUDO xbps-install -y git" ;;
gentoo) echo "$SUDO emerge --sync --quiet && $SUDO emerge --ask=n dev-vcs/git app-shells/bash" ;; gentoo) echo "$SUDO emerge --sync --quiet && $SUDO emerge --ask=n dev-vcs/git app-shells/bash" ;;
opensuse) echo "$SUDO zypper refresh && $SUDO zypper install git" ;; opensuse) echo "$SUDO zypper refresh && $SUDO zypper install git" ;;