fix: 🐛 update variable name
This commit is contained in:
parent
9fa826fb28
commit
b7ced5badf
|
@ -1,14 +1,14 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# 设置变量
|
# 设置变量
|
||||||
HOST="127.0.0.1"
|
host="127.0.0.1"
|
||||||
PORT="9091"
|
port="9091"
|
||||||
USERNAME="用户名"
|
username="用户名"
|
||||||
PASSWORD="密码"
|
password="密码"
|
||||||
|
|
||||||
# 更新 Transmission 黑名单
|
# 更新 Transmission 黑名单
|
||||||
echo "更新 Transmission 黑名单..."
|
echo "更新 Transmission 黑名单..."
|
||||||
transmission-remote $HOST:$PORT --auth $USERNAME:$PASSWORD --blocklist-update
|
transmission-remote $host:$port --auth $username:$password --blocklist-update
|
||||||
|
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
echo "Transmission 黑名单更新成功,重启transmission"
|
echo "Transmission 黑名单更新成功,重启transmission"
|
||||||
|
|
Loading…
Reference in New Issue