tools: use /usr/bin/env bash instead of /bin/bash

Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
Change-Id: I374f7427a4318d00ca474367818117e11789ec13
This commit is contained in:
Marc 'risson' Schmitt 2021-08-17 14:29:33 +02:00
parent ea008fd7fe
commit 839ec629bf
No known key found for this signature in database
GPG Key ID: 9C3FA22FABF1AA8D
12 changed files with 12 additions and 12 deletions

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
containers_running=$(sudo docker ps --filter "label=kolla_version" --format "{{.Names}}")

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# Spawning the neutron agents containers leaves artifacts on the host.
# This script removes these artifacts.

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# Move to top level directory
REAL_PATH=$(python -c "import os;print os.path.realpath('$0')")

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
echo "##### System Identification #####"
egrep -w 'PRETTY_NAME|VERSION_ID' /etc/os-release

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -o errexit
set -o pipefail

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# This script can be used to interact with kolla via ansible.

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
ANSIBLE=`find ansible -type f -exec cat {} \; | wc -l`
DOCKER=`find docker -type f -exec cat {} \; | wc -l`

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
_XTRACE_OVS_DPDK_CTL=$(set +o | grep xtrace)
if [[ "${OVS_DPDK_CTL_DEBUG}" == "True" ]]; then

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
TOPLEVEL=$(git rev-parse --show-toplevel)
RES=0

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# Ignore E006 -- line length greater than 80 char
# Error on E005 -- file does not begin with #! or have .sh prefix

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
REAL_PATH=$(python -c "import os,sys;print os.path.realpath('$0')")
cd "$(dirname "$REAL_PATH")/.."

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# This script can be used to check user privilege to execute
# docker commands