Skip to content

Commit 6b06084

Browse files
committed
Drop -r for variable within loop
using `local -r` will blow up, example output: ``` /home/kubernetes/bin/configure.sh: line 388: local: manifest_name: readonly variable ``` Change-Id: Id379180803d44dd9c7ac0da41c1cd56de0fe54a4
1 parent b9615d5 commit 6b06084

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cluster/gce/gci/configure.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ function load-docker-images {
385385
# The resource manifest is expecting something like 'registry/kube-controller-manager:v1.2.3', no arch specified.
386386
local -r images=$(docker images --format "{{.Repository}}:{{.Tag}}" | egrep 'kube-apiserver|kube-controller-manager|kube-scheduler|kube-proxy' | grep amd64)
387387
for image in $images ; do
388-
local -r manifest_name="${image/-amd64/}"
388+
local manifest_name="${image/-amd64/}"
389389
if ! docker images --format "{{.Repository}}:{{.Tag}}" | grep -q ${manifest_name} ; then
390390
docker tag $image $manifest_name
391391
fi

0 commit comments

Comments
 (0)