-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Script mode set -xe by default when no shebang used
Fixes #1735 When I use script mode without a #! the current behaviour is to insert one for me - `#!/bin/sh`. This is helpful and removes an unneccessary line from my script. In addition I'd like two things by default: First I want the script to error out if any of the commands error out. Second I'd like to see the commands the script runs before their output. These two features are baked into `sh` with the `set -xe` flags. After this change the default behaviour of script mode when no shebang is provided is to insert both the default shebang as well as the flags required to make shell errors and shell echos happen.
- Loading branch information
1 parent
24c2131
commit 3c973fc
Showing
3 changed files
with
15 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters