From 6bf880a289274886edf08470b13e819f5504974d Mon Sep 17 00:00:00 2001 From: 1computer1 Date: Sat, 15 Jun 2019 17:38:32 -0400 Subject: [PATCH] Fix PHP --- docker/php/run.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docker/php/run.sh b/docker/php/run.sh index 3e5631f..6048485 100644 --- a/docker/php/run.sh +++ b/docker/php/run.sh @@ -1 +1,6 @@ -printf %s "$1" | php -r || true +mkdir "$CODEDIR" && cd "$CODEDIR" + +printf %s "$1" > program.php +php program.php || true + +cd .. && rm -rf "$CODEDIR"