File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -152,7 +152,7 @@ api_call() {
152152 -m " $API_CALL_TIMEOUT_SEC " \
153153 --retry " $API_CALL_RETRIES " \
154154 --stderr - \
155- -sSL \
155+ -fsSL \
156156 " ${hdrs[@]} " \
157157 " $IMGUR_API /$IMGUR_API_VER /$resource "
158158}
@@ -621,6 +621,7 @@ persist_tokens() {
621621# @param {string} url url to uploaded image to be deleted.
622622#
623623# @returns {void}
624+ # shellcheck disable=SC2329
624625delete_image_auto () {
625626 local dhash url response
626627
@@ -648,19 +649,17 @@ setup
648649
649650# ############ START CONFIG #############
650651LOGIN=false # true if we should authenticate with our own user.
651- ALBUM_ID=" "
652+ ALBUM_ID=' '
652653
653654API_CALL_CONNECT_TIMEOUT_SEC=5
654655API_CALL_TIMEOUT_SEC=60
655656API_CALL_RETRIES=1
656657
657658LOG_FILE=" $CONF_ROOT /log"
658659
659- AUTO_DELETE_DELAY=" " # if set, uploaded image(s) will be deleted after this delay
660+ AUTO_DELETE_DELAY=' ' # if set, uploaded image(s) will be deleted after this delay
660661
661- # if the config file exists and is not empty...
662662if [[ -s " $CONF_FILE " ]]; then
663- # load configuations
664663 source " $CONF_FILE "
665664fi
666665
You can’t perform that action at this time.
0 commit comments