Skip to content

Commit 6881d28

Browse files
committed
fix
1 parent 223d7a6 commit 6881d28

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

usr/libexec/helper-scripts/strings.bsh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -327,10 +327,9 @@ strings_bsh_error_trap() {
327327
exit 1
328328
}
329329

330-
if [[ "usr/libexec/helper-scripts/strings.bsh" == "${0}" ]]; then
331-
string_bsh_tests
332-
fi
333-
if [[ "/usr/libexec/helper-scripts/strings.bsh" == "${0}" ]]; then
330+
## Useful in case this script is copied verbatim into another script such as
331+
## in package 'usability-misc' file 'dist-installer-cli-standalone'.
332+
if ! [ "${SKIP_UNIT_TESTS-}" = "true" ]; then
334333
string_bsh_tests
335334
fi
336335

0 commit comments

Comments
 (0)