1 2 3 4 5 6 7 8 9 10 11 12 13 14
#!/usr/bin/env sh if [ -z "$1" ]; then url=$(xclip -o -selection clipboard) elif [ "$1" = "-" ]; then read -r url else url="$1" fi # shellcheck disable=SC2029 ssh greta.wg restream toggle "$url" tokodi /storage/videos/greta.strm