mirror of
https://github.com/notwa/rc
synced 2024-11-05 08:19:03 -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;;
|
([!\ -~]) false;;
|
||||||
([\":\<\>?\\\|]) false;;
|
([\":\<\>?\\\|]) false;;
|
||||||
|
(?*) true;;
|
||||||
|
(*) false;;
|
||||||
esac || die
|
esac || die
|
||||||
touch -- "$fn" || die
|
touch -- "$fn" || die
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue