Эх сурвалжийг харах

Closes #606: Change the code style to match with other examples in the repo

Signed-off-by: Marcela Bonell <[email protected]>
Marcela Bonell 10 жил өмнө
parent
commit
46edde6f45

+ 4 - 4
test/tests/php-hello-world/run.sh

@@ -1,7 +1,7 @@
 #!/bin/bash
 
-IMAGE="$1"
-DIR_TEST="$(dirname "$(readlink -f "$BASH_SOURCE")")"
-DIR_CONTAINER="/var/www/html/hello-world"
+image="$1"
+dirTest="$(dirname "$(readlink -f "$BASH_SOURCE")")"
+dirContainer='/var/www/html/hello-world'
 
-docker run -it --rm -v $DIR_TEST:$DIR_CONTAINER -w $DIR_CONTAINER $IMAGE php index.php
+docker run -it --rm -v "$dirTest":"$dirContainer" -w "$dirContainer" "$image" php index.php