mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-02-21 22:55:57 +00:00
fix(scripts): correct usage and help exit status (#143)
This commit is contained in:
@@ -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:"* ]]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user