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() { ...@@ -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() { ...@@ -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() { ...@@ -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
......
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