summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKatolaZ <katolaz@freaknet.org>2019-08-12 09:10:31 +0100
committerKatolaZ <katolaz@freaknet.org>2019-08-12 09:10:31 +0100
commit3d5be35e1e30fb6e1fda0ef9a9db6b6d5d839114 (patch)
tree7b4353106363a86cfb4494dcf44a15eee69722bd
parent0522ef659553292f546fb1f3af43cfd2f4b07bb2 (diff)
accept commands from stdin in script-mode
-rw-r--r--gramscii.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gramscii.c b/gramscii.c
index 8d453f7..2181d48 100644
--- a/gramscii.c
+++ b/gramscii.c
@@ -183,8 +183,6 @@ int main(int argc, char *argv[]){
argv++;
argc--;
}
- if (!script)
- commands(stdin);
+ commands(stdin);
cleanup(0);
- return 0;
}