This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function _check_required_programs() { | |
# Required program(s) | |
req_progs=(readlink xmllint xsltproc curl date sed) | |
for p in ${req_progs[@]}; do | |
hash "${p}" 2>&- || \ | |
{ echo >&2 " Required program \"${p}\" not installed or in search PATH."; | |
exit 1; | |
} |
OlderNewer