From f484e4c7e148713d50cd707d8caa1cf259496e5f Mon Sep 17 00:00:00 2001 From: "xiongdian.me" Date: Wed, 19 Apr 2023 14:37:28 +0800 Subject: [PATCH] riot: bug fix when 'tmp' has leading zeros --- scripts/riot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/riot b/scripts/riot index 5bc13cd..941fb73 100755 --- a/scripts/riot +++ b/scripts/riot @@ -32,7 +32,7 @@ get_server_meta() SERVER=proxy.beardic.cn local tmp=$(sha256sum <<< "$host" | tr -cd "[:digit:]") tmp=${tmp:0:4} - PORT=$((tmp+36000)) + PORT=$((10#$tmp+36000)) SSH_USERNAME=root ;; * )