We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8001c00 commit ff36835Copy full SHA for ff36835
1 file changed
helper-functions/tests/files-exist.nf
@@ -60,17 +60,20 @@ process filesExist {
60
if [[ "${expect}" = "exist" ]]; then
61
for f in \$(echo "${file_name_arg}"); do
62
if [[ ! -f \$f ]]; then
63
- exit "Expected \$f not exists."
+ echo "Expected \$f not exists."
64
+ exit 1
65
fi
66
done
67
elif [[ "${expect}" = "not_exist" ]]; then
68
69
if [[ -f \$f ]]; then
- exit "Unexpected \$f exists."
70
+ echo "Unexpected \$f exists."
71
72
73
74
else
- exit "Second argument must be either 'exist' or 'not_exist'. '${expect}' is supplied."
75
+ echo "Second argument must be either 'exist' or 'not_exist'. '${expect}' is supplied."
76
77
78
"""
79
}
0 commit comments