A collection of scripts

prefon: fix file and stdin actions

yemou 4acedff5 f0dd740d

Changed files
+2 -2
scritps
+2 -2
scritps/prefon
···
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 ;;