]> git.ipfire.org Git - people/ms/suricata.git/commitdiff
tools: bash from env
authorDanny Browning <dbrowning@dragos.com>
Tue, 27 Oct 2020 15:47:21 +0000 (09:47 -0600)
committerVictor Julien <victor@inliniac.net>
Tue, 17 Nov 2020 13:06:37 +0000 (14:06 +0100)
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
scripts/clang-format.sh
scripts/setup-decoder.sh
scripts/setup-simple-detect.sh
scripts/setup-simple-detect2.sh

index 009ec58c3d8d589295b0fd839d0e5999cf878164..9abe8001f1db40ff0b72ca07695653a58018ebff 100755 (executable)
@@ -1,4 +1,4 @@
-#! /bin/sh
+#!/usr/bin/env bash
 
 set -e
 
index bc76bdb84f7d8da1b19b151b053c9c7dcb46e06c..86c3a8392c34fc9ae322c3bf23b86b2188561f88 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Script to clang-format suricata C code changes
 #
index e041226b6be1ca7d99dcee1ccfc62db2f7946a81..e36bf973b87cbae064298983d5357e1e9cddc0a4 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Script to setup a new decoder.
 # Written by Victor Julien <victor@inliniac.net>
index e3855d387f7820804719a0b8c364df52a696ffc9..a474d32e0dcb10b7e8950f0b11dacb16225e91b0 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Script to setup a new 'simple' detect module.
 # Written by Victor Julien <victor@inliniac.net>
index 0d53cddb56695f2ce6f1833eacc08c0119b1ba5b..3dd62fd12d2d1cfc302e99bd825ce819beff5b1a 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Script to setup a new 'simple' detect module.
 # Written by Victor Julien <victor@inliniac.net>