From 70a797afdc157ad92bb84c2b3cffaa371a6db87a Mon Sep 17 00:00:00 2001 From: Gautier DI FOLCO Date: Sun, 19 Mar 2023 10:39:57 +0100 Subject: [PATCH] fix: rely on env to invoke bash --- init.sh | 2 +- net_speed.tmux | 2 +- run-tests.sh | 2 +- scripts/download_speed.sh | 2 +- scripts/helpers.sh | 2 +- scripts/net_speed.sh | 2 +- scripts/upload_speed.sh | 2 +- tests/suites/helpers.test.sh | 2 +- tests/test_utils.sh | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/init.sh b/init.sh index 65235f0..8e6b906 100755 --- a/init.sh +++ b/init.sh @@ -1,4 +1,4 @@ -#!/bin/bash - +#!/usr/bin/env bash CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" source "$CURRENT_DIR/scripts/helpers.sh" diff --git a/net_speed.tmux b/net_speed.tmux index a81f908..edbe12c 100755 --- a/net_speed.tmux +++ b/net_speed.tmux @@ -1,4 +1,4 @@ -#!/bin/bash - +#!/usr/bin/env bash - CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" source "$CURRENT_DIR/scripts/helpers.sh" diff --git a/run-tests.sh b/run-tests.sh index 70f0d41..7ed1757 100755 --- a/run-tests.sh +++ b/run-tests.sh @@ -1,4 +1,4 @@ -#!/bin/bash - +#!/usr/bin/env bash CURRENT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" for testSuite in $CURRENT_DIR/tests/suites/* ; do diff --git a/scripts/download_speed.sh b/scripts/download_speed.sh index 66f5511..3bf149f 100755 --- a/scripts/download_speed.sh +++ b/scripts/download_speed.sh @@ -1,4 +1,4 @@ -#!/bin/bash - +#!/usr/bin/env bash CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" source "$CURRENT_DIR/helpers.sh" diff --git a/scripts/helpers.sh b/scripts/helpers.sh index 6877eac..2b44102 100644 --- a/scripts/helpers.sh +++ b/scripts/helpers.sh @@ -1,4 +1,4 @@ -#!/bin/bash - +#!/usr/bin/env bash ## # Varialbes diff --git a/scripts/net_speed.sh b/scripts/net_speed.sh index 5390925..e61524d 100755 --- a/scripts/net_speed.sh +++ b/scripts/net_speed.sh @@ -1,4 +1,4 @@ -#!/bin/bash - +#!/usr/bin/env bash CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" source "$CURRENT_DIR/helpers.sh" diff --git a/scripts/upload_speed.sh b/scripts/upload_speed.sh index b66477b..744f865 100755 --- a/scripts/upload_speed.sh +++ b/scripts/upload_speed.sh @@ -1,4 +1,4 @@ -#!/bin/bash - +#!/usr/bin/env bash CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" source "$CURRENT_DIR/helpers.sh" diff --git a/tests/suites/helpers.test.sh b/tests/suites/helpers.test.sh index a68bbb1..8062305 100755 --- a/tests/suites/helpers.test.sh +++ b/tests/suites/helpers.test.sh @@ -1,4 +1,4 @@ -#!/bin/bash - +#!/usr/bin/env bash CURRENT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" SCRIPTS="$CURRENT_DIR/../../scripts" diff --git a/tests/test_utils.sh b/tests/test_utils.sh index 045d3e5..934767f 100644 --- a/tests/test_utils.sh +++ b/tests/test_utils.sh @@ -1,4 +1,4 @@ -#!/bin/bash - +#!/usr/bin/env bash ############################################################################### # Author: Travis Goldie # Purpose: Util funcs for unit tests