mirror of
https://github.com/bytedream/scripts.git
synced 2025-05-09 04:05:11 +02:00
22 lines
322 B
Bash
Executable File
22 lines
322 B
Bash
Executable File
#!/usr/bin/env sh
|
|
|
|
verify_commands() {
|
|
commands=("curl")
|
|
for command in "${commands[@]}"; do
|
|
which $command &> /dev/null
|
|
if [ $? -ne 0 ]; then
|
|
echo "command '$command' not found"
|
|
exit 1
|
|
fi
|
|
done
|
|
}
|
|
|
|
main() {
|
|
verify_commands
|
|
|
|
sh <(curl -sSL https://spotx-official.github.io/run.sh)
|
|
}
|
|
|
|
main
|
|
|