Skip to content

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

cluster/gce/config-default.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
# TODO(jbeda): Provide a way to override project
1818
# gcloud multiplexing for shared GCE/GKE tests.
19-
KUBE_ROOT=$(dirname "${BASH_SOURCE}")/../..
19+
KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/../..
2020
source "${KUBE_ROOT}/cluster/gce/config-common.sh"
2121

2222
# Specifying KUBE_GCE_API_ENDPOINT will override the default GCE Compute API endpoint (https://www.googleapis.com/compute/v1/).

cluster/gce/config-test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
# TODO(jbeda): Provide a way to override project
1818
# gcloud multiplexing for shared GCE/GKE tests.
19-
KUBE_ROOT=$(dirname "${BASH_SOURCE}")/../..
19+
KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/../..
2020
source "${KUBE_ROOT}/cluster/gce/config-common.sh"
2121

2222
# Specifying KUBE_GCE_API_ENDPOINT will override the default GCE Compute API endpoint (https://www.googleapis.com/compute/v1/).

cluster/gce/upgrade.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ if [[ "${KUBERNETES_PROVIDER:-gce}" != "gce" ]]; then
2727
exit 1
2828
fi
2929

30-
KUBE_ROOT=$(dirname "${BASH_SOURCE}")/../..
30+
KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/../..
3131
source "${KUBE_ROOT}/hack/lib/util.sh"
3232
source "${KUBE_ROOT}/cluster/kube-util.sh"
3333

cluster/gce/util.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
# config-default.sh.
2121
readonly GCE_MAX_LOCAL_SSD=8
2222

23-
KUBE_ROOT=$(dirname "${BASH_SOURCE}")/../..
23+
KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/../..
2424
source "${KUBE_ROOT}/cluster/gce/${KUBE_CONFIG_FILE-"config-default.sh"}"
2525
source "${KUBE_ROOT}/cluster/common.sh"
2626
source "${KUBE_ROOT}/hack/lib/util.sh"

third_party/multiarch/qemu-user-static/register/register.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ entries="aarch64 aarch64_be alpha arm armeb hppa m68k microblaze microblazeel mi
1919
if [ "${1}" = "--reset" ]; then
2020
shift
2121
(
22-
cd /proc/sys/fs/binfmt_misc
22+
cd /proc/sys/fs/binfmt_misc || exit
2323
for file in $entries; do
24-
if [ -f qemu-${file} ]; then
25-
echo -1 > qemu-${file}
24+
if [ -f "qemu-${file}" ]; then
25+
echo -1 > "qemu-${file}"
2626
fi
2727
done
2828
)
2929
fi
3030

31-
exec $(dirname "${BASH_SOURCE}")/qemu-binfmt-conf.sh --qemu-path="${QEMU_BIN_DIR}" $@
31+
exec $(dirname "${BASH_SOURCE[0]}")/qemu-binfmt-conf.sh --qemu-path="${QEMU_BIN_DIR}" "$@"

0 commit comments

Comments
 (0)