mirror of
https://github.com/opennetworkinglab/onos.git
synced 2025-12-25 03:01:26 +01:00
Update has been performed only on the scripts and the executables strictly necessary for the following use cases: - Build (including Intellij) - Tests (including Intellij) - Docker build (including dev and yourkit) - Upload snapshot (including local) - Release Finally, fix the ability to run ONOS using onos-local targets, stc and docker stc (aka up4 stc env). Last but not least, updated the azul image to a newer one which exports also the PYTHONENCODING Change-Id: Ie96f3a9c76dbba83b1fc3896a372f1045d3d7ccc
30 lines
969 B
Bash
30 lines
969 B
Bash
#!/bin/bash
|
|
|
|
|
|
#
|
|
# Copyright 2015-present Open Networking Foundation
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
#
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Utility for checking syntax of JSON files
|
|
# -----------------------------------------------------------------------------
|
|
|
|
checkJson() {
|
|
cat ${1} | python3 -m json.tool >> /dev/null
|
|
if [ "$?" -ne "0" ]; then
|
|
echo "Not valid JSON File" && exit 1
|
|
fi
|
|
}
|