Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions bin/shpec
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ describe() {

end() {
: $((test_indent -= 1))
if [ $test_indent -eq 0 ]; then
[ $failures -eq 0 ]
fi
[ $test_indent -ge 0 ] && return
printf -u 2 "Syntax Error in ${_shpec_file} file\n"
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Even in the original branch, ${_shpec_file} is not defined here. If there's not an easy way to get the name of the file, I'd rather just omit that part for now.

Also, I was unable to find any documentation on the -u option for printf. What does it do, is it needed, and can we use our internal echoe instead?

exit 1
}

end_describe() {
Expand Down