Implement /usr/bin/env as the shebang in all bash scripts
In order to be more consistent, and also account for different environments and platforms, this patch implements the use of #!/usr/bin/env as the shebang for all bash scripts in the environment. Closes-Bug: #1485557 Change-Id: I93e6a47fd6be816620682eddb2880e38f11bf675
This commit is contained in:
parent
ffefb48bf4
commit
d1f410d08a
@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
#
|
#
|
||||||
### BEGIN INIT INFO
|
### BEGIN INIT INFO
|
||||||
# Provides: mysql
|
# Provides: mysql
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
cd ${LXC_ROOTFS_MOUNT}/dev
|
cd ${LXC_ROOTFS_MOUNT}/dev
|
||||||
mkdir net
|
mkdir net
|
||||||
mknod net/tun c 10 200
|
mknod net/tun c 10 200
|
||||||
|
@ -95,8 +95,8 @@ Resources:
|
|||||||
MasterUserPassword: {Ref: MasterUserPassword}
|
MasterUserPassword: {Ref: MasterUserPassword}
|
||||||
WaitHandle: {Ref: WaitHandle}
|
WaitHandle: {Ref: WaitHandle}
|
||||||
- |
|
- |
|
||||||
#!/bin/bash -v
|
#!/usr/bin/env bash
|
||||||
#
|
set -v
|
||||||
iptables -F
|
iptables -F
|
||||||
|
|
||||||
# Helper function
|
# Helper function
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# Copyright 2015, Rackspace US, Inc.
|
# Copyright 2015, Rackspace US, Inc.
|
||||||
#
|
#
|
||||||
|
@ -37,7 +37,7 @@ info_block "Checking for required libraries." 2> /dev/null || source $(dirname $
|
|||||||
## Main ----------------------------------------------------------------------
|
## Main ----------------------------------------------------------------------
|
||||||
# Create a simple task to bounce all networks within a container.
|
# Create a simple task to bounce all networks within a container.
|
||||||
cat > /tmp/ensure_container_networking.sh <<EOF
|
cat > /tmp/ensure_container_networking.sh <<EOF
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
INTERFACES=""
|
INTERFACES=""
|
||||||
INTERFACES+="\$(awk '/auto/ {print \$2}' /etc/network/interfaces) "
|
INTERFACES+="\$(awk '/auto/ {print \$2}' /etc/network/interfaces) "
|
||||||
INTERFACES+="\$(ls -1 /etc/network/interfaces.d/ | awk -F'.cfg' '{print \$1}')"
|
INTERFACES+="\$(ls -1 /etc/network/interfaces.d/ | awk -F'.cfg' '{print \$1}')"
|
||||||
|
Loading…
Reference in New Issue
Block a user