fix(scripts): correct usage and help exit status (#143)

This commit is contained in:
2025-06-30 08:51:06 +03:00
committed by GitHub
parent 29d3676b38
commit 07fe18af75
6 changed files with 21 additions and 3 deletions

View File

@@ -6,3 +6,9 @@
[ "$status" -eq 0 ]
[ -d "$dir" ]
}
@test "x-mkd with no args shows usage" {
run bash local/bin/x-mkd
[ "$status" -eq 1 ]
[[ "$output" == "Usage:"* ]]
}