From f44057354b2cc75e3e569244ff2920203eb51acf Mon Sep 17 00:00:00 2001 From: Arthur Carcano Date: Mon, 29 Apr 2024 10:03:16 +0200 Subject: [PATCH] Use a shebang to enforce running test.sh in bash Commit b959a7f3eccdebda804206232a37f1d651f5dd5c was made because `test.sh` cannot run on systems where the default shell is not bash compatible (e.g. zsh). (cf https://github.com/evolbioinfo/gotree/pull/23) A [shebang](https://en.wikipedia.org/wiki/Shebang_(Unix)) allows to force the use of bash to interpret the shell script. This version using `/usr/bin/env` should be the most portable. --- README.md | 2 +- test.sh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6ebca1e..7198444 100644 --- a/README.md +++ b/README.md @@ -129,7 +129,7 @@ The `gotree` executable should be located in the current folder (or the `$GOPATH To test the executable: ``` -bash test.sh +./test.sh ``` ## Auto completion diff --git a/test.sh b/test.sh index 807d21c..0a89462 100755 --- a/test.sh +++ b/test.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash ########## Test Suite for Gotree command line tools ############## set -e