From 752de8370db122bab6ba15d4af0a6b7103068b15 Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Fri, 15 Jul 2022 16:33:40 -0400 Subject: [PATCH] harmonizing shebang for scripts this starts using the 'env' tool to locate bash for us, so we don't have hard-coded paths. the hard-coding of those always bugged me, and this is a better solution, assuming that the environment has 'bash' resolve to the right version of bash. that is an externality that we cannot enforce or guarantee, so it's appropriate to give up on trying to do so. --- scripts/core/array_sifter.sh | 2 +- scripts/core/common.alias | 2 +- scripts/core/connect_feisty_meow.sh | 2 +- scripts/core/create_tempdir.sh | 2 +- scripts/core/functions.sh | 2 +- scripts/core/inventory.sh | 2 +- scripts/core/is_feisty_up.sh | 2 +- scripts/core/launch_feisty_meow.sh | 2 +- scripts/core/prep_feisty_host.sh | 2 +- scripts/core/reconfigure_feisty_meow.sh | 2 +- scripts/core/search_replace.sh | 2 +- scripts/core/variables.sh | 2 +- 12 files changed, 12 insertions(+), 12 deletions(-) diff --git a/scripts/core/array_sifter.sh b/scripts/core/array_sifter.sh index aca301f6..a66941a4 100644 --- a/scripts/core/array_sifter.sh +++ b/scripts/core/array_sifter.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Provides functions for checking and sorting the contents of arrays. diff --git a/scripts/core/common.alias b/scripts/core/common.alias index d0ebe897..f2c3b437 100644 --- a/scripts/core/common.alias +++ b/scripts/core/common.alias @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ############## # Name : common.alias # Author : Chris Koeritz diff --git a/scripts/core/connect_feisty_meow.sh b/scripts/core/connect_feisty_meow.sh index 211bba7b..258656c0 100644 --- a/scripts/core/connect_feisty_meow.sh +++ b/scripts/core/connect_feisty_meow.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Author: Chris Koeritz diff --git a/scripts/core/create_tempdir.sh b/scripts/core/create_tempdir.sh index c435d2dd..e9cda8b7 100644 --- a/scripts/core/create_tempdir.sh +++ b/scripts/core/create_tempdir.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # create_tempdir: # diff --git a/scripts/core/functions.sh b/scripts/core/functions.sh index d2b0bdaa..30c36abd 100644 --- a/scripts/core/functions.sh +++ b/scripts/core/functions.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This defines some general, useful functions. diff --git a/scripts/core/inventory.sh b/scripts/core/inventory.sh index d32c86c7..84b2b839 100644 --- a/scripts/core/inventory.sh +++ b/scripts/core/inventory.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # a frivolous but useful script that shows information about the local # computer in terms of an adventure game inventory listing. diff --git a/scripts/core/is_feisty_up.sh b/scripts/core/is_feisty_up.sh index 1f4b2d8f..493abd1c 100644 --- a/scripts/core/is_feisty_up.sh +++ b/scripts/core/is_feisty_up.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # tells the caller if the feisty_meow scripts have been initialized # successfully or not, as far as we can tell. diff --git a/scripts/core/launch_feisty_meow.sh b/scripts/core/launch_feisty_meow.sh index 2f8aca08..9caeff37 100644 --- a/scripts/core/launch_feisty_meow.sh +++ b/scripts/core/launch_feisty_meow.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ############## diff --git a/scripts/core/prep_feisty_host.sh b/scripts/core/prep_feisty_host.sh index c068fa5a..7574f345 100644 --- a/scripts/core/prep_feisty_host.sh +++ b/scripts/core/prep_feisty_host.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # this is the feisty meow host preparation script. it installs all the packages required to run and build feisty meow scripts and applications. # this script may still be a bit incomplete; we definitely use a lot of unix and linux tools in different scripts. diff --git a/scripts/core/reconfigure_feisty_meow.sh b/scripts/core/reconfigure_feisty_meow.sh index b7e5dda0..3491beb8 100644 --- a/scripts/core/reconfigure_feisty_meow.sh +++ b/scripts/core/reconfigure_feisty_meow.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # reconfigure_feisty_meow: # diff --git a/scripts/core/search_replace.sh b/scripts/core/search_replace.sh index 8357761a..9849db80 100644 --- a/scripts/core/search_replace.sh +++ b/scripts/core/search_replace.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # a break out of the popular replace_pattern_in_file function that # can work with multiple files. diff --git a/scripts/core/variables.sh b/scripts/core/variables.sh index aa81598c..c51490ba 100644 --- a/scripts/core/variables.sh +++ b/scripts/core/variables.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ############## -- 2.34.1