Skip to content

Commit 9741891

Browse files
committed
Use '/usr/bin/env bash' instead of hardcoding '/bin/bash'.
This makes the scripts more portable by not making assumptions about the location of the bash shell. `env' will search for bash in PATH. Signed-off-by: Moritz Ulrich <[email protected]>
1 parent 8aa7a62 commit 9741891

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

flight/targets/EntireFlash/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
# Set bash shell for all OSs except MS Windows
2727
ifndef COMSPEC
28-
SHELL := /bin/bash
28+
SHELL := /usr/bin/env bash
2929
endif
3030

3131
WHEREAMI := $(dir $(lastword $(MAKEFILE_LIST)))

package/osx/libraries

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
APP="${1?}"
44
PLUGINS="${APP}/Contents/Plugins"

package/osx/package

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
# Information about dmg generation: http://stackoverflow.com/questions/96882/how-do-i-create-a-nice-looking-dmg-for-mac-os-x-using-command-line-tools
44

0 commit comments

Comments
 (0)