mirror of
https://github.com/Snowy-Fluffy/zapret.installer.git
synced 2025-12-10 11:03:05 +03:00
25 lines
619 B
Bash
Executable File
25 lines
619 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
REPO_DIR="/tmp/zapret.installer"
|
|
|
|
|
|
if [ ! -d "$REPO_DIR" ]; then
|
|
cd /tmp || exit
|
|
git clone https://github.com/Snowy-Fluffy/zapret.installer.git
|
|
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
|
|
fi
|
|
|
|
chmod +x /tmp/zapret.installer/zapret-control.sh
|
|
bash /tmp/zapret.installer/zapret-control.sh
|
|
|