Browse code

Get rid of overly complex loop in favor of two commands with local variables

Scott Dodson authored on 2015/05/13 04:37:40
Showing 1 changed files
... ...
@@ -116,17 +116,8 @@ do
116 116
 done
117 117
 
118 118
 # Build only 'openshift' for other platforms
119
-for OS in darwin windows
120
-do
121
-    export GOOS=${OS}
122
-    if [ $GOOS == 'windows' ]
123
-    then
124
-        export GOARCH='386'
125
-    else
126
-        export GOARCH='amd64'
127
-    fi
128
-    go install -ldflags "%{ldflags}" %{import_path}/cmd/openshift
129
-done
119
+GOOS=windows GOARCH=386 go install -ldflags "%{ldflags}" %{import_path}/cmd/openshift
120
+GOOS=darwin GOARCH=amd64 go install -ldflags "%{ldflags}" %{import_path}/cmd/openshift
130 121
 
131 122
 #Build our pod
132 123
 pushd images/pod/