Shellcheck linting

Also removed unused code
This commit is contained in:
Brian Hartvigsen 2020-12-09 21:01:44 -07:00
parent 7d7789ae96
commit 2635dfef96
No known key found for this signature in database
GPG Key ID: 46EEA32081255BEB
1 changed files with 1 additions and 5 deletions

View File

@ -21,10 +21,6 @@
######## Public functions #####################
_syno_get_cookie_data() {
grep -i "\W$1=" "$HTTP_HEADER" | grep -i "^Set-Cookie:" | _tail_n 1 | _egrep_o "$1=[^;]*;" | tr -d ';'
}
#domain keyfile certfile cafile fullchain
synology_dsm_deploy() {
@ -84,7 +80,7 @@ synology_dsm_deploy() {
encoded_username="$(printf "%s" "$SYNO_Username" | _url_encode)"
encoded_password="$(printf "%s" "$SYNO_Password" | _url_encode)"
if [ ! -z "$SYNO_DID" ]; then
if [ -n "$SYNO_DID" ]; then
_H1="Cookie: did=$SYNO_DID"
export _H1
_debug3 H1 "${_H1}"