瀏覽代碼

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

Signed-off-by: Marcela Bonell <[email protected]>
Marcela Bonell 10 年之前
父節點
當前提交
46edde6f45
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      test/tests/php-hello-world/run.sh

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

@@ -1,7 +1,7 @@
 #!/bin/bash
 #!/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