mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-24 06:19:37 +00:00
5b9916e34b
Fixes shellcheck errors in script/* Adds a couple trailing newlines. Adds `script/shellcheck-scripts` and associated CI machinery. Current set ultra-conservative, does not output warnings, only errors.
11 lines
329 B
Bash
Executable file
11 lines
329 B
Bash
Executable file
#!/bin/bash
|
|
|
|
if [[ $# -ne 1 ]]; then
|
|
echo "Usage: $0 [production|staging|...]"
|
|
exit 1
|
|
fi
|
|
|
|
export ZED_KUBE_NAMESPACE=$1
|
|
|
|
pod=$(kubectl --namespace=${ZED_KUBE_NAMESPACE} get pods --selector=app=zed --output=jsonpath='{.items[*].metadata.name}')
|
|
exec kubectl --namespace $ZED_KUBE_NAMESPACE exec --tty --stdin $pod -- /bin/bash
|