nezha/script/install_en.sh

21 lines
727 B
Bash
Raw Normal View History

#!/bin/sh
2022-04-29 23:53:02 +08:00
#========================================================
2024-12-01 16:38:53 +08:00
# v0 script redirect to new repository
2022-04-29 23:53:02 +08:00
#========================================================
2024-12-01 16:38:53 +08:00
# new address https://raw.githubusercontent.com/nezhahq/scripts/refs/heads/v0/install.sh
if command -v wget >/dev/null 2>&1; then
wget -O nezha_v0.sh https://raw.githubusercontent.com/nezhahq/scripts/refs/heads/v0/install_en.sh
elif command -v curl >/dev/null 2>&1; then
curl -o nezha_v0.sh https://raw.githubusercontent.com/nezhahq/scripts/refs/heads/v0/install_en.sh
2022-04-29 23:53:02 +08:00
else
2024-12-01 16:38:53 +08:00
echo "Error: wget or curl not found, please install one of them first"
exit 1
fi
2024-12-01 16:38:53 +08:00
chmod +x nezha_v0.sh
# run new script with original parameters
exec ./nezha_v0.sh "$@"