Unverified Commit cf86d57a authored by Scruel Tao's avatar Scruel Tao Committed by GitHub
Browse files

Fix for shfmt check

parent 9e958f4e
......@@ -66,7 +66,7 @@ synology_dsm_deploy() {
SYNO_Device_Name=
SYNO_Device_ID=
fi
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."
return 1
......@@ -104,8 +104,7 @@ synology_dsm_deploy() {
_err "Do not use a backslash (\) in your certificate description"
return 1
fi
_base_url="$SYNO_Scheme://$SYNO_Hostname:$SYNO_Port"
_base_url="$SYNO_Scheme://$SYNO_Hostname:$SYNO_Port"
_debug _base_url "$_base_url"
_debug "Getting API version"
......@@ -259,7 +258,7 @@ _logout() {
_remove_temp_admin() {
flag=$1
username=$2
if [ -n "${flag}" ]; then
_debug "Removing temp admin user in Synology DSM"
synouser --del "$username" >/dev/null
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment