Merge pull request #7306 from chaodaiG/fix-bash-bug
This commit is contained in:
commit
0fd000f59c
@ -18,14 +18,10 @@
|
||||
: "${PROJECT:=k8s-cri-containerd}"
|
||||
|
||||
# GOOGLE_APPLICATION_CREDENTIALS is the path of service account file.
|
||||
if [ -z "${GOOGLE_APPLICATION_CREDENTIALS:-""}" ]; then
|
||||
echo "GOOGLE_APPLICATION_CREDENTIALS is not set"
|
||||
exit 1
|
||||
if [ -n "${GOOGLE_APPLICATION_CREDENTIALS:-}" ]; then
|
||||
gcloud auth activate-service-account --key-file "${GOOGLE_APPLICATION_CREDENTIALS}" --project="${PROJECT}"
|
||||
fi
|
||||
|
||||
# Activate gcloud service account.
|
||||
gcloud auth activate-service-account --key-file "${GOOGLE_APPLICATION_CREDENTIALS}" --project="${PROJECT}"
|
||||
|
||||
cat /etc/os-release
|
||||
apt-get update
|
||||
apt-get install -y libseccomp2 libseccomp-dev
|
||||
|
Loading…
Reference in New Issue
Block a user