We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 75e40ec commit fd9cce2Copy full SHA for fd9cce2
1 file changed
usr/libexec/helper-scripts/strings.bsh
@@ -398,8 +398,11 @@ strings_bsh_error_trap() {
398
399
## Useful in case this script is copied verbatim into another script such as
400
## in package 'usability-misc' file 'dist-installer-cli-standalone'.
401
-if should_run_unit_tests "${BASH_SOURCE[0]}"; then
402
- string_bsh_tests
+## Another option would be to move the unit testing out of this script.
+if declare -F should_run_unit_tests >/dev/null; then
403
+ if should_run_unit_tests "${BASH_SOURCE[0]}"; then
404
+ string_bsh_tests
405
+ fi
406
fi
407
408
#trim_collapse_split " aaa bbb ccc ddd "
0 commit comments