mirror of
https://github.com/engineer-man/piston.git
synced 2025-06-08 11:16:27 +02:00
pkg(retina-1.2.0): added retina 1.2.0
This commit is contained in:
parent
507233400d
commit
6cee1e8c34
6 changed files with 48 additions and 0 deletions
15
packages/retina/1.2.0/run
vendored
Normal file
15
packages/retina/1.2.0/run
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
#!/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"
|
Loading…
Add table
Add a link
Reference in a new issue