mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 02:28:05 -07:00
myvesta-php-func support for stdin
This commit is contained in:
parent
77467eeebd
commit
4dd6d22f07
4 changed files with 126 additions and 6 deletions
|
@ -8,5 +8,14 @@
|
|||
# Action #
|
||||
#----------------------------------------------------------#
|
||||
|
||||
|
||||
if [ -p /dev/stdin ]; then
|
||||
STDIN=$(cat -)
|
||||
if [ ! -z "$STDIN" ]; then
|
||||
echo "$STDIN" | php /usr/local/vesta/func/bash-to-php-interpreter.php "$@"
|
||||
exit $?
|
||||
fi
|
||||
fi
|
||||
|
||||
php /usr/local/vesta/func/bash-to-php-interpreter.php "$@"
|
||||
exit $?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue