piston/packages/retina/1.2.0/run

15 lines
305 B
Plaintext
Raw Normal View History

2021-11-27 11:59:56 +01:00
#!/bin/bash
# retina doesn't take interactive stdin and doesn't take args either
# save the file for later
file="$1"
# remove file from $@
shift
# join arguments on newline
stdin=`printf "%s\n" "$@"`
# pass stdin into Retina command with file as argument
echo "$stdin" | "$RETINA_PATH"/Retina "$file"