Browse Source

fix: lint

pull/5023/head
Scruel Tao 10 months ago
parent
commit
50eda6b678
  1. 12
      deploy/synology_dsm.sh

12
deploy/synology_dsm.sh

@ -206,7 +206,6 @@ synology_dsm_deploy() {
synosetkeyvalue /etc/synoinfo.conf otp_enforce_option none synosetkeyvalue /etc/synoinfo.conf otp_enforce_option none
_info "Temporary disabled enforce 2FA-OTP to complete authentication." _info "Temporary disabled enforce 2FA-OTP to complete authentication."
_info "previous_otp_enforce_option" "$otp_enforce_option" _info "previous_otp_enforce_option" "$otp_enforce_option"
else else
otp_enforce_option="" otp_enforce_option=""
fi fi
@ -403,16 +402,15 @@ _cleardeployconf() {
# key # key
__check2cleardeployconfexp() { __check2cleardeployconfexp() {
# Warning:
_key="$1" _key="$1"
_clear_key="CLEAR_$_key" _clear_key="CLEAR_$_key"
# Clear saved settings if explicitly requested # Clear saved settings if explicitly requested
if [ -n "$(eval echo \$$_clear_key)" ]; then
if [ -n "$(eval echo \$"$_clear_key")" ]; then
_debug2 "$_key: value cleared from config, exported value will be ignored." _debug2 "$_key: value cleared from config, exported value will be ignored."
_cleardeployconf "$_key" _cleardeployconf "$_key"
eval $_key=
export $_key=
eval SAVED_$_key=
export SAVED_$_key=
eval "$_key"=
export "$_key"=
eval SAVED_"$_key"=
export SAVED_"$_key"=
fi fi
} }
Loading…
Cancel
Save