mirror of
https://github.com/natelandau/shell-scripting-templates.git
synced 2025-11-10 14:13:45 -05:00
_stopwords_ fail on error
This commit is contained in:
@@ -119,7 +119,8 @@ _stopWords_() {
|
||||
if [ -f "${sedFile}" ]; then
|
||||
string="$(echo "${string}" | ${SED_COMMAND} -f "${sedFile}")"
|
||||
else
|
||||
debug "Missing sedfile in _stopWords_()"
|
||||
error "Missing sedfile in _stopWords_()"
|
||||
return 1
|
||||
fi
|
||||
|
||||
declare -a localStopWords=()
|
||||
|
||||
Reference in New Issue
Block a user