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:
parent
ea008fd7fe
commit
839ec629bf
@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
containers_running=$(sudo docker ps --filter "label=kolla_version" --format "{{.Names}}")
|
containers_running=$(sudo docker ps --filter "label=kolla_version" --format "{{.Names}}")
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# Spawning the neutron agents containers leaves artifacts on the host.
|
# Spawning the neutron agents containers leaves artifacts on the host.
|
||||||
# This script removes these artifacts.
|
# This script removes these artifacts.
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# Move to top level directory
|
# Move to top level directory
|
||||||
REAL_PATH=$(python -c "import os;print os.path.realpath('$0')")
|
REAL_PATH=$(python -c "import os;print os.path.realpath('$0')")
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
echo "##### System Identification #####"
|
echo "##### System Identification #####"
|
||||||
egrep -w 'PRETTY_NAME|VERSION_ID' /etc/os-release
|
egrep -w 'PRETTY_NAME|VERSION_ID' /etc/os-release
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
set -o errexit
|
set -o errexit
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
#
|
#
|
||||||
# This script can be used to interact with kolla via ansible.
|
# This script can be used to interact with kolla via ansible.
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
ANSIBLE=`find ansible -type f -exec cat {} \; | wc -l`
|
ANSIBLE=`find ansible -type f -exec cat {} \; | wc -l`
|
||||||
DOCKER=`find docker -type f -exec cat {} \; | wc -l`
|
DOCKER=`find docker -type f -exec cat {} \; | wc -l`
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
_XTRACE_OVS_DPDK_CTL=$(set +o | grep xtrace)
|
_XTRACE_OVS_DPDK_CTL=$(set +o | grep xtrace)
|
||||||
if [[ "${OVS_DPDK_CTL_DEBUG}" == "True" ]]; then
|
if [[ "${OVS_DPDK_CTL_DEBUG}" == "True" ]]; then
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
TOPLEVEL=$(git rev-parse --show-toplevel)
|
TOPLEVEL=$(git rev-parse --show-toplevel)
|
||||||
RES=0
|
RES=0
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# Ignore E006 -- line length greater than 80 char
|
# Ignore E006 -- line length greater than 80 char
|
||||||
# Error on E005 -- file does not begin with #! or have .sh prefix
|
# Error on E005 -- file does not begin with #! or have .sh prefix
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
REAL_PATH=$(python -c "import os,sys;print os.path.realpath('$0')")
|
REAL_PATH=$(python -c "import os,sys;print os.path.realpath('$0')")
|
||||||
cd "$(dirname "$REAL_PATH")/.."
|
cd "$(dirname "$REAL_PATH")/.."
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
#
|
#
|
||||||
# This script can be used to check user privilege to execute
|
# This script can be used to check user privilege to execute
|
||||||
# docker commands
|
# docker commands
|
||||||
|
Loading…
Reference in New Issue
Block a user