Skip to content

Commit

Permalink
Use first bash from PATH (allows running on macOS)
Browse files Browse the repository at this point in the history
/bin/bash on macOS is too old (3.2.57), but can be replaced
by a recent bash version from Homebrew.

Signed-off-by: Stefan Weil <[email protected]>
  • Loading branch information
stweil committed Oct 23, 2023
1 parent 8a67cba commit cb5defa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bin/ocr-transform.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# Default to the parent dir of this script. Overwritten by `make install`
SHAREDIR="$(readlink -f "$(dirname "$(readlink -f "$0")")/..")"
Expand Down
2 changes: 1 addition & 1 deletion bin/ocr-validate.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# Default to the parent dir of this script. Overwritten by `make install`
SHAREDIR="$(readlink -f "$(dirname "$(readlink -f "$0")")/..")"
Expand Down
2 changes: 1 addition & 1 deletion lib.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

#{{{ Logging
if [[ -n "$COLORTERM" || "$TERM" = *color* || "$TERM" = xterm* ]];then
Expand Down

0 comments on commit cb5defa

Please sign in to comment.