#!/usr/bin/env shprintf'Running script: %s\n'"$(basename${0})">&2functioncheck_http_response(){http_response="${1}"if["${http_response}"!="200"];thenprintf'%s error: %s\n'"${0}""HTTP Response code ${http_response}; you probably need to update the list url!">&2exit1fi}functionis_file_empty(){file="${1}"if[!-r"${file}"];thenprintf'%s error: %s\n'"${0}""file ${file} not found or not readable!">&2exit1fiif[`cat"${file}"|wc-c`-eq0];thenprintf'%s error: %s\n'"${0}""file ${file} empty!">&2exit1fi}functionis_str_empty(){str="${1}"errmsg="${2}"if[-z"${str}"];thenprintf'%s error: %s\n'"${0}""${errmsg}">&2exit1fi}