mirror of
https://github.com/notwa/rc
synced 2024-11-05 06:39:02 -08:00
consider empty arguments an error in grab
This commit is contained in:
parent
2548a2ca0f
commit
8e3b5584bd
1 changed files with 2 additions and 0 deletions
2
sh/grab
2
sh/grab
|
@ -49,6 +49,8 @@ case "$fn" in
|
|||
(..) false;;
|
||||
([!\ -~]) false;;
|
||||
([\":\<\>?\\\|]) false;;
|
||||
(?*) true;;
|
||||
(*) false;;
|
||||
esac || die
|
||||
touch -- "$fn" || die
|
||||
|
||||
|
|
Loading…
Reference in a new issue