From 5db6d63a503a7251ce32db0a06d6a9161b7e7f6a Mon Sep 17 00:00:00 2001 From: Simon Heimberg Date: Mon, 17 Jul 2017 23:24:39 +0200 Subject: [PATCH 1/2] plugins/shell.md does not use "cd ..." as example --- docs/en/plugins/shell.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/en/plugins/shell.md b/docs/en/plugins/shell.md index 05cd56a7..76742945 100644 --- a/docs/en/plugins/shell.md +++ b/docs/en/plugins/shell.md @@ -1,3 +1,4 @@ + Plugin Shell ============ @@ -22,7 +23,7 @@ setup: ```yml setup: shell: - - "cd /www" + - "[ -d /www ]" - "chmod u+x %BUILD_PATH%/bin/console" - "%BUILD_PATH%/bin/console build" ``` From 50ad31e2d2654377b6ca4ac0c866c1f38f652341 Mon Sep 17 00:00:00 2001 From: Simon Heimberg Date: Mon, 17 Jul 2017 23:26:46 +0200 Subject: [PATCH 2/2] plugins/shell.md explains aborting after failure --- docs/en/plugins/shell.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/en/plugins/shell.md b/docs/en/plugins/shell.md index 76742945..8a5d4ffc 100644 --- a/docs/en/plugins/shell.md +++ b/docs/en/plugins/shell.md @@ -28,6 +28,7 @@ setup: - "%BUILD_PATH%/bin/console build" ``` +When a command fails, the remaining ones are not run. #### Each new command forgets about what was before So if you want cd to directory and then run script there, combine those two commands into one like: