Skip to content
This repository has been archived by the owner on Aug 14, 2023. It is now read-only.

Commit

Permalink
Make bash invocations in shebangs portable
Browse files Browse the repository at this point in the history
The script wouldn't work as expected every time for me.

See e.g. this comment for some background for this change:
rbenv/rbenv#20 (comment)
  • Loading branch information
djmaze committed Jan 17, 2016
1 parent 3062bb7 commit 4ffe77c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions builder/build.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash -e
set -x
#!/bin/bash
set -ex
# This script should be run only inside of a Docker container
if [ ! -f /.dockerinit ]; then
echo "ERROR: script works only in a Docker container!"
Expand Down
4 changes: 2 additions & 2 deletions builder/chroot-script.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash -e
set -x
#!/bin/bash
set -ex

# device specific settings
HYPRIOT_DEVICE="ODROID C1/C1+"
Expand Down

0 comments on commit 4ffe77c

Please sign in to comment.