diff --git a/ArduPlane/createTags b/ArduPlane/createTags index e13937801d..df38cc23ca 100755 --- a/ArduPlane/createTags +++ b/ArduPlane/createTags @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash #" Autocompletion enabled vim for arduino pde's ctags -RV --language-force=C++ --c++-kinds=+p --fields=+iaS --extra=+q \ diff --git a/Rover/createTags b/Rover/createTags index e13937801d..df38cc23ca 100755 --- a/Rover/createTags +++ b/Rover/createTags @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash #" Autocompletion enabled vim for arduino pde's ctags -RV --language-force=C++ --c++-kinds=+p --fields=+iaS --extra=+q \ diff --git a/Tools/Linux_HAL_Essentials/pru/aiopru/start_test b/Tools/Linux_HAL_Essentials/pru/aiopru/start_test index 437e267d03..162ab16d12 100755 --- a/Tools/Linux_HAL_Essentials/pru/aiopru/start_test +++ b/Tools/Linux_HAL_Essentials/pru/aiopru/start_test @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash #make debug #make test if [ ! -L /sys/class/gpio/gpio80 ] || [ ! -e /sys/class/gpio/gpio80 ] ; then diff --git a/Tools/Linux_HAL_Essentials/startup.sh b/Tools/Linux_HAL_Essentials/startup.sh index 82b3847f87..b5fd5f0607 100755 --- a/Tools/Linux_HAL_Essentials/startup.sh +++ b/Tools/Linux_HAL_Essentials/startup.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash if [ "`echo $1`" = "load" ]; then echo "Loading Test_Capes..." diff --git a/Tools/Replay/plotit.sh b/Tools/Replay/plotit.sh index 59a2fea56f..68bd9f1c7e 100755 --- a/Tools/Replay/plotit.sh +++ b/Tools/Replay/plotit.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash cmd="plot " echo $# diff --git a/Tools/UDP_Proxy/start_proxies.sh b/Tools/UDP_Proxy/start_proxies.sh index 4763d0cd92..3e8ef97671 100755 --- a/Tools/UDP_Proxy/start_proxies.sh +++ b/Tools/UDP_Proxy/start_proxies.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # an example script that starts udpproxy for multiple ports under GNU # screen, allowing for unattended operation of the proxy for long # periods diff --git a/Tools/autotest/run_in_terminal_window.sh b/Tools/autotest/run_in_terminal_window.sh index 7a83f1c565..ac5c8e792d 100755 --- a/Tools/autotest/run_in_terminal_window.sh +++ b/Tools/autotest/run_in_terminal_window.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Try to run a command in an appropriate type of terminal window # depending on whats available diff --git a/Tools/debug/gdb_crashdump.sh b/Tools/debug/gdb_crashdump.sh index 89f6b4d66c..917ffa7503 100755 --- a/Tools/debug/gdb_crashdump.sh +++ b/Tools/debug/gdb_crashdump.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # script to more easily get a backtrace from an ArduPilot crash_dump.bin diff --git a/Tools/environment_install/APM_install.sh b/Tools/environment_install/APM_install.sh index acb7a1fbae..869687dbff 100755 --- a/Tools/environment_install/APM_install.sh +++ b/Tools/environment_install/APM_install.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash #A simple script to install the APM SITL environment into cygwin diff --git a/Tools/environment_install/install-ROS-ubuntu.sh b/Tools/environment_install/install-ROS-ubuntu.sh index 565670f5a5..435560ac4f 100755 --- a/Tools/environment_install/install-ROS-ubuntu.sh +++ b/Tools/environment_install/install-ROS-ubuntu.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash echo "---------- $0 start ----------" set -e # set -x diff --git a/Tools/environment_install/install-prereqs-arch.sh b/Tools/environment_install/install-prereqs-arch.sh index 52b94eca23..965815ec71 100755 --- a/Tools/environment_install/install-prereqs-arch.sh +++ b/Tools/environment_install/install-prereqs-arch.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e set -x diff --git a/Tools/environment_install/install-prereqs-mac.sh b/Tools/environment_install/install-prereqs-mac.sh index 6486b007d6..de2cd666ef 100755 --- a/Tools/environment_install/install-prereqs-mac.sh +++ b/Tools/environment_install/install-prereqs-mac.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash echo "---------- $0 start ----------" set -e set -x @@ -42,7 +42,7 @@ echo "Checking homebrew..." $(which -s brew) || { echo "installing homebrew..." - /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" + /usr/bin/env bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" } echo "Homebrew installed" diff --git a/Tools/environment_install/install-prereqs-ubuntu.sh b/Tools/environment_install/install-prereqs-ubuntu.sh index 594aa33708..0107c24a33 100755 --- a/Tools/environment_install/install-prereqs-ubuntu.sh +++ b/Tools/environment_install/install-prereqs-ubuntu.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash echo "---------- $0 start ----------" set -e set -x diff --git a/Tools/environment_install/ubuntu-18.04-python3.sh b/Tools/environment_install/ubuntu-18.04-python3.sh index a82a4138a4..1b0df324fd 100755 --- a/Tools/environment_install/ubuntu-18.04-python3.sh +++ b/Tools/environment_install/ubuntu-18.04-python3.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e set -x diff --git a/Tools/geotag/geotag.sh b/Tools/geotag/geotag.sh index 58703fd43c..02b3034256 100755 --- a/Tools/geotag/geotag.sh +++ b/Tools/geotag/geotag.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Advanced geotagging tool by André Kjellstrup ###################################################################### VARIABLES ######################## diff --git a/Tools/gittools/git-commit-subsystems b/Tools/gittools/git-commit-subsystems index 4ef3805996..a06fa7dc54 100755 --- a/Tools/gittools/git-commit-subsystems +++ b/Tools/gittools/git-commit-subsystems @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash SCRIPT_DIR=$(dirname $(realpath ${BASH_SOURCE[0]})) GIT_DIR=$(git rev-parse --git-dir) diff --git a/Tools/gittools/git-subsystems-split b/Tools/gittools/git-subsystems-split index 1810aea893..a8fd097872 100755 --- a/Tools/gittools/git-subsystems-split +++ b/Tools/gittools/git-subsystems-split @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash SCRIPT_DIR=$(dirname $(realpath ${BASH_SOURCE[0]})) GIT_DIR=$(git rev-parse --git-dir) diff --git a/Tools/gittools/path-libraries.sh b/Tools/gittools/path-libraries.sh index 14aaf4f2e3..711931776c 100755 --- a/Tools/gittools/path-libraries.sh +++ b/Tools/gittools/path-libraries.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash usage() { cat >&$1 <&$1 <