From ac37fd5e29f953b37e1c66e27ef375489a1cc683 Mon Sep 17 00:00:00 2001 From: Danny Browning Date: Tue, 27 Oct 2020 09:47:21 -0600 Subject: [PATCH] tools: bash from env Use of hardcoded bash prevents users from using an upgraded bash which may live in a different location. This behavior is often seen on OSX systems. Utilize env to find the preferred bash to call for scripts. --- scripts/check-setup.sh | 2 +- scripts/clang-format.sh | 2 +- scripts/setup-decoder.sh | 2 +- scripts/setup-simple-detect.sh | 2 +- scripts/setup-simple-detect2.sh | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/check-setup.sh b/scripts/check-setup.sh index 009ec58c3..9abe8001f 100755 --- a/scripts/check-setup.sh +++ b/scripts/check-setup.sh @@ -1,4 +1,4 @@ -#! /bin/sh +#!/usr/bin/env bash set -e diff --git a/scripts/clang-format.sh b/scripts/clang-format.sh index bc76bdb84..86c3a8392 100755 --- a/scripts/clang-format.sh +++ b/scripts/clang-format.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Script to clang-format suricata C code changes # diff --git a/scripts/setup-decoder.sh b/scripts/setup-decoder.sh index e041226b6..e36bf973b 100755 --- a/scripts/setup-decoder.sh +++ b/scripts/setup-decoder.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Script to setup a new decoder. # Written by Victor Julien diff --git a/scripts/setup-simple-detect.sh b/scripts/setup-simple-detect.sh index e3855d387..a474d32e0 100755 --- a/scripts/setup-simple-detect.sh +++ b/scripts/setup-simple-detect.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Script to setup a new 'simple' detect module. # Written by Victor Julien diff --git a/scripts/setup-simple-detect2.sh b/scripts/setup-simple-detect2.sh index 0d53cddb5..3dd62fd12 100755 --- a/scripts/setup-simple-detect2.sh +++ b/scripts/setup-simple-detect2.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Script to setup a new 'simple' detect module. # Written by Victor Julien -- 2.39.2