From: Chris Koeritz Date: Fri, 15 Jul 2022 20:33:40 +0000 (-0400) Subject: harmonizing shebang for scripts X-Git-Tag: 2.140.136^2~18 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=752de8370db122bab6ba15d4af0a6b7103068b15;p=feisty_meow.git 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. --- 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 ##############