mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-19 18:02:01 +00:00
Merge pull request #84904 from clarklee92/FixShellCheck
Fix shell check
This commit is contained in:
commit
4ae223fbff
@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
# TODO(jbeda): Provide a way to override project
|
# TODO(jbeda): Provide a way to override project
|
||||||
# gcloud multiplexing for shared GCE/GKE tests.
|
# gcloud multiplexing for shared GCE/GKE tests.
|
||||||
KUBE_ROOT=$(dirname "${BASH_SOURCE}")/../..
|
KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/../..
|
||||||
source "${KUBE_ROOT}/cluster/gce/config-common.sh"
|
source "${KUBE_ROOT}/cluster/gce/config-common.sh"
|
||||||
|
|
||||||
# Specifying KUBE_GCE_API_ENDPOINT will override the default GCE Compute API endpoint (https://www.googleapis.com/compute/v1/).
|
# Specifying KUBE_GCE_API_ENDPOINT will override the default GCE Compute API endpoint (https://www.googleapis.com/compute/v1/).
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
# TODO(jbeda): Provide a way to override project
|
# TODO(jbeda): Provide a way to override project
|
||||||
# gcloud multiplexing for shared GCE/GKE tests.
|
# gcloud multiplexing for shared GCE/GKE tests.
|
||||||
KUBE_ROOT=$(dirname "${BASH_SOURCE}")/../..
|
KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/../..
|
||||||
source "${KUBE_ROOT}/cluster/gce/config-common.sh"
|
source "${KUBE_ROOT}/cluster/gce/config-common.sh"
|
||||||
|
|
||||||
# Specifying KUBE_GCE_API_ENDPOINT will override the default GCE Compute API endpoint (https://www.googleapis.com/compute/v1/).
|
# Specifying KUBE_GCE_API_ENDPOINT will override the default GCE Compute API endpoint (https://www.googleapis.com/compute/v1/).
|
||||||
|
@ -27,7 +27,7 @@ if [[ "${KUBERNETES_PROVIDER:-gce}" != "gce" ]]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
KUBE_ROOT=$(dirname "${BASH_SOURCE}")/../..
|
KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/../..
|
||||||
source "${KUBE_ROOT}/hack/lib/util.sh"
|
source "${KUBE_ROOT}/hack/lib/util.sh"
|
||||||
source "${KUBE_ROOT}/cluster/kube-util.sh"
|
source "${KUBE_ROOT}/cluster/kube-util.sh"
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
# config-default.sh.
|
# config-default.sh.
|
||||||
readonly GCE_MAX_LOCAL_SSD=8
|
readonly GCE_MAX_LOCAL_SSD=8
|
||||||
|
|
||||||
KUBE_ROOT=$(dirname "${BASH_SOURCE}")/../..
|
KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/../..
|
||||||
source "${KUBE_ROOT}/cluster/gce/${KUBE_CONFIG_FILE-"config-default.sh"}"
|
source "${KUBE_ROOT}/cluster/gce/${KUBE_CONFIG_FILE-"config-default.sh"}"
|
||||||
source "${KUBE_ROOT}/cluster/common.sh"
|
source "${KUBE_ROOT}/cluster/common.sh"
|
||||||
source "${KUBE_ROOT}/hack/lib/util.sh"
|
source "${KUBE_ROOT}/hack/lib/util.sh"
|
||||||
|
@ -19,13 +19,13 @@ entries="aarch64 aarch64_be alpha arm armeb hppa m68k microblaze microblazeel mi
|
|||||||
if [ "${1}" = "--reset" ]; then
|
if [ "${1}" = "--reset" ]; then
|
||||||
shift
|
shift
|
||||||
(
|
(
|
||||||
cd /proc/sys/fs/binfmt_misc
|
cd /proc/sys/fs/binfmt_misc || exit
|
||||||
for file in $entries; do
|
for file in $entries; do
|
||||||
if [ -f qemu-${file} ]; then
|
if [ -f "qemu-${file}" ]; then
|
||||||
echo -1 > qemu-${file}
|
echo -1 > "qemu-${file}"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
)
|
)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exec $(dirname "${BASH_SOURCE}")/qemu-binfmt-conf.sh --qemu-path="${QEMU_BIN_DIR}" $@
|
exec $(dirname "${BASH_SOURCE[0]}")/qemu-binfmt-conf.sh --qemu-path="${QEMU_BIN_DIR}" "$@"
|
||||||
|
Loading…
Reference in New Issue
Block a user