From 4dcab2fb9cf5071d5f8b182488df1d29b8bff9f1 Mon Sep 17 00:00:00 2001 From: Matthew Hooker Date: Wed, 25 Jan 2017 16:05:43 -0800 Subject: [PATCH] docs/provisioners/shell: safety first make it harder to forget -e when overriding shebang. Closes #2873 --- website/source/docs/provisioners/shell.html.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/website/source/docs/provisioners/shell.html.md b/website/source/docs/provisioners/shell.html.md index 8012e62fb..450c489b2 100644 --- a/website/source/docs/provisioners/shell.html.md +++ b/website/source/docs/provisioners/shell.html.md @@ -220,9 +220,9 @@ would be: - On Ubuntu, the `/bin/sh` shell is [dash](https://en.wikipedia.org/wiki/Debian_Almquist_shell). If your script - has [bash](https://en.wikipedia.org/wiki/Bash_(Unix_shell))-specific commands - in it, then put `#!/bin/bash` at the top of your script. Differences between - dash and bash can be found on the + has [bash](https://en.wikipedia.org/wiki/Bash_(Unix_shell))-specific + commands in it, then put `#!/bin/bash -e` at the top of your script. + Differences between dash and bash can be found on the [DashAsBinSh](https://wiki.ubuntu.com/DashAsBinSh) Ubuntu wiki page. *My shell works when I login but fails with the shell provisioner*