21 lines
727 B
Bash
Executable File
21 lines
727 B
Bash
Executable File
#!/bin/sh
|
|
|
|
#========================================================
|
|
# v0 script redirect to new repository
|
|
#========================================================
|
|
|
|
# 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
|
|
else
|
|
echo "Error: wget or curl not found, please install one of them first"
|
|
exit 1
|
|
fi
|
|
|
|
chmod +x nezha_v0.sh
|
|
|
|
# run new script with original parameters
|
|
exec ./nezha_v0.sh "$@"
|