mirror of
https://github.com/LamGC/quickly-conf-sshd.git
synced 2025-04-30 06:37:35 +00:00
修复 sshkey-url 参数的 bug.
This commit is contained in:
parent
ee47565095
commit
754c15b1fa
@ -43,8 +43,7 @@ get_param_value() {
|
|||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
# 检查并更新 SSH key 地址.
|
use_param_keys_url() {
|
||||||
if [ $(has_param "-k" "--sshkey-url") == "true" ]; then
|
|
||||||
local new_sshkey_url=$(get_param_value "-k" "--sshkey-url")
|
local new_sshkey_url=$(get_param_value "-k" "--sshkey-url")
|
||||||
if [ "$new_sshkey_url" == "" ]; then
|
if [ "$new_sshkey_url" == "" ]; then
|
||||||
echo "Please specify the URL of the SSH public key."
|
echo "Please specify the URL of the SSH public key."
|
||||||
@ -52,6 +51,11 @@ if [ $(has_param "-k" "--sshkey-url") == "true" ]; then
|
|||||||
fi
|
fi
|
||||||
sshkey_url=$new_sshkey_url
|
sshkey_url=$new_sshkey_url
|
||||||
echo "A new SSH keys URL has been specified: $sshkey_url"
|
echo "A new SSH keys URL has been specified: $sshkey_url"
|
||||||
|
}
|
||||||
|
|
||||||
|
# 检查并更新 SSH key 地址.
|
||||||
|
if [ $(has_param "-k" "--sshkey-url") == "true" ]; then
|
||||||
|
use_param_keys_url
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# 帮助信息.
|
# 帮助信息.
|
||||||
|
Loading…
Reference in New Issue
Block a user