From 4acedff510316f82917b8c10fa8c94c528288376 Mon Sep 17 00:00:00 2001 From: yemou Date: Wed, 14 Jul 2021 01:16:13 +0000 Subject: [PATCH] prefon: fix file and stdin actions --- scritps/prefon | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scritps/prefon b/scritps/prefon index d2153ec..093032f 100755 --- a/scritps/prefon +++ b/scritps/prefon @@ -123,9 +123,9 @@ read_input() { case $PREFON_ACTION in file ) [ -e "$PREFON_FILE" ] || { info e "'$PREFON_FILE' does not exist"; exit 1; } - wa ;; + read_input ;; stdin ) [ -e /dev/stdin ] || { info e "/dev/stdin does not exist"; exit 1; } - wa ;; + read_input ;; text ) [ "$PREFON_TEXT" ] || { info e "string not provided"; exit 1; } generate_image "$PREFON_TEXT" ;; * ) info e invalid action: $PREFON_ACTION; exit 1 ;; -- 2.51.2