mirror of
https://github.com/DictXiong/dotfiles.git
synced 2025-12-19 12:37:49 +08:00
riot: bug fix when 'tmp' has leading zeros
This commit is contained in:
parent
e5f88b99d9
commit
f484e4c7e1
@ -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
|
||||
;;
|
||||
* )
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user