File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414# See the License for the specific language governing permissions and
1515# limitations under the License.
1616
17+ set -o errexit
1718set -o nounset
1819set -o pipefail
1920
20- source " $( dirname " ${BASH_SOURCE[0]} " ) /utils.sh"
21+ basedir=" $( dirname " ${BASH_SOURCE[0]} " ) "
22+ source " ${basedir} /utils.sh"
23+
24+ ROOT=" $( cd " ${basedir} " && pwd ) " /../..
2125cd " ${ROOT} "
2226
2327# FOCUS focuses the test to run.
Original file line number Diff line number Diff line change 1414# See the License for the specific language governing permissions and
1515# limitations under the License.
1616
17- ROOT=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd ) " /../..
18-
1917IS_WINDOWS=0
2018if [ -v " OS" ] && [ " ${OS} " == " Windows_NT" ]; then
2119 IS_WINDOWS=1
Original file line number Diff line number Diff line change @@ -27,6 +27,8 @@ set -o pipefail
2727basedir=" $( dirname " ${BASH_SOURCE[0]} " ) "
2828source " ${basedir} /build-utils.sh"
2929source " ${basedir} /init-buildx.sh"
30+
31+ ROOT=" $( cd " $basedir " && pwd ) " /..
3032cd " ${ROOT} "
3133
3234# ignore errors if the image already exists
Original file line number Diff line number Diff line change 1414# See the License for the specific language governing permissions and
1515# limitations under the License.
1616
17- ROOT=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd ) " /..
18-
1917# PROJECT is the gce project to upload tarball.
20- PROJECT= ${PROJECT:- " k8s-cri-containerd" }
18+ : " ${PROJECT:= k8s-cri-containerd} "
2119
2220# GOOGLE_APPLICATION_CREDENTIALS is the path of service account file.
2321if [ -z " ${GOOGLE_APPLICATION_CREDENTIALS:- " " } " ]; then
Original file line number Diff line number Diff line change @@ -22,7 +22,10 @@ set -o errexit
2222set -o nounset
2323set -o pipefail
2424
25- source " $( dirname " ${BASH_SOURCE[0]} " ) /build-utils.sh"
25+ basedir=" $( dirname " ${BASH_SOURCE[0]} " ) "
26+ source " ${basedir} /build-utils.sh"
27+
28+ ROOT=" $( cd " ${basedir} " && pwd ) " /..
2629cd " ${ROOT} "
2730
2831# Make sure output directory is clean.
You can’t perform that action at this time.
0 commit comments