Browse Source

Fix for shfmt check

pull/4706/head
Scruel Tao 1 year ago
committed by GitHub
parent
commit
cf86d57a9f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      deploy/synology_dsm.sh

7
deploy/synology_dsm.sh

@ -66,7 +66,7 @@ synology_dsm_deploy() {
SYNO_Device_Name= SYNO_Device_Name=
SYNO_Device_ID= SYNO_Device_ID=
fi fi
if [ -z "${SYNO_Username:-}" ] || [ -z "${SYNO_Password:-}" ]; then if [ -z "${SYNO_Username:-}" ] || [ -z "${SYNO_Password:-}" ]; then
_err "You must set either SYNO_USE_TEMP_ADMIN, or set both SYNO_Username and SYNO_Password." _err "You must set either SYNO_USE_TEMP_ADMIN, or set both SYNO_Username and SYNO_Password."
return 1 return 1
@ -104,8 +104,7 @@ synology_dsm_deploy() {
_err "Do not use a backslash (\) in your certificate description" _err "Do not use a backslash (\) in your certificate description"
return 1 return 1
fi fi
_base_url="$SYNO_Scheme://$SYNO_Hostname:$SYNO_Port"
_base_url="$SYNO_Scheme://$SYNO_Hostname:$SYNO_Port"
_debug _base_url "$_base_url" _debug _base_url "$_base_url"
_debug "Getting API version" _debug "Getting API version"
@ -259,7 +258,7 @@ _logout() {
_remove_temp_admin() { _remove_temp_admin() {
flag=$1 flag=$1
username=$2 username=$2
if [ -n "${flag}" ]; then if [ -n "${flag}" ]; then
_debug "Removing temp admin user in Synology DSM" _debug "Removing temp admin user in Synology DSM"
synouser --del "$username" >/dev/null synouser --del "$username" >/dev/null

Loading…
Cancel
Save