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