mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 02:28:05 -07:00
v-php-func takes STDIN only if --stdin parameter is passed
This commit is contained in:
parent
a55b160103
commit
942b46a657
4 changed files with 41 additions and 18 deletions
|
@ -9,7 +9,7 @@
|
|||
#----------------------------------------------------------#
|
||||
|
||||
|
||||
if [ -p /dev/stdin ]; then
|
||||
if [ "$1" == "--stdin" ] && [ -p /dev/stdin ]; then
|
||||
STDIN=$(cat -)
|
||||
if [ ! -z "$STDIN" ]; then
|
||||
echo "$STDIN" | php /usr/local/vesta/func/bash-to-php-interpreter.php "$@"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue