Introduction
Introduction Statistics Contact Development Disclaimer Help
Execute hook on *cmd as well - smdev - suckless mdev
git clone git://git.suckless.org/smdev
Log
Files
Refs
README
LICENSE
---
commit 13d80055a7d58231c3ad43be51b383fa222d2f3c
parent 8243d1a683e336ff6edb1ea1b65cde089a6322cb
Author: sin <[email protected]>
Date: Wed, 21 Aug 2013 17:31:26 +0100
Execute hook on *cmd as well
Diffstat:
M smdev.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/smdev.c b/smdev.c
@@ -148,13 +148,11 @@ create_dev(const char *path)
/* Run command hooks for this rule */
if (Rule->cmd) {
switch (Rule->cmd[0]) {
+ case '*':
case '@':
system(&Rule->cmd[1]);
break;
case '$':
- case '*':
- fprintf(stderr, "Unsupported command '%s' for …
- Rule->cmd, Rule->devregex);
break;
default:
eprintf("Invalid command '%s'\n", Rule->cmd);
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.