Files
zapret.installer/installer.sh

22 lines
564 B
Bash
Raw Normal View History

2024-12-24 21:39:52 +03:00
#!/bin/bash
2025-03-20 15:58:49 +03:00
REPO_DIR="/tmp/zapret.installer"
if [ ! -d "$REPO_DIR" ]; then
cd /tmp || exit
2025-03-20 04:05:10 +03:00
git clone https://github.com/Snowy-Fluffy/zapret.installer.git
2025-03-20 15:58:49 +03:00
else
cd "$REPO_DIR" || exit
if ! git pull; then
echo "Ошибка при обновлении. Удаляю репозиторий и клонирую заново..."
cd /tmp || exit
rm -rf "$REPO_DIR"
git clone https://github.com/Snowy-Fluffy/zapret.installer.git
cd "$REPO_DIR" || exit
fi
2025-03-20 04:05:10 +03:00
fi
2025-03-20 15:28:30 +03:00
2025-03-20 03:56:24 +03:00
chmod +x zapret-control.sh
2025-03-20 15:58:49 +03:00
bash zapret-control.sh
2025-03-20 04:05:10 +03:00