2024-06-25 10:15:49 -04:00
|
|
|
#!/bin/sh
|
2022-04-29 11:53:02 -04:00
|
|
|
|
|
|
|
#========================================================
|
2024-12-01 03:38:53 -05:00
|
|
|
# v0 script redirect to new repository
|
2022-04-29 11:53:02 -04:00
|
|
|
#========================================================
|
|
|
|
|
2024-12-01 03:38:53 -05: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 11:53:02 -04:00
|
|
|
else
|
2024-12-01 03:38:53 -05:00
|
|
|
echo "Error: wget or curl not found, please install one of them first"
|
|
|
|
exit 1
|
2024-10-19 10:03:00 -04:00
|
|
|
fi
|
2024-12-01 03:38:53 -05:00
|
|
|
|
|
|
|
chmod +x nezha_v0.sh
|
|
|
|
|
|
|
|
# run new script with original parameters
|
|
|
|
exec ./nezha_v0.sh "$@"
|