mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-16 08:26:16 +00:00
obs: build_all.sh: serach scripts in own dir.
update scripts are relative to this script go to it and then try to update. Signed-off-by: Jose Carlos Venegas Munoz <jose.carlos.venegas.munoz@intel.com>
This commit is contained in:
parent
b8a41a8994
commit
9c64f571f6
@ -10,7 +10,8 @@ set -o errexit
|
||||
set -o nounset
|
||||
set -o pipefail
|
||||
|
||||
script_dir=$(dirname "$0")
|
||||
readonly script_name="$(basename "${BASH_SOURCE[0]}")"
|
||||
readonly script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
#Note:Lets update qemu and the kernel first, they take longer to build.
|
||||
#Note: runtime is build at the end to get the version from all its dependencies.
|
||||
projects=(
|
||||
@ -62,6 +63,7 @@ pass = ${OBS_PASS}
|
||||
eom
|
||||
fi
|
||||
|
||||
pushd "${script_dir}"
|
||||
for p in "${projects[@]}"; do
|
||||
pushd "$p" >>/dev/null
|
||||
update_cmd="./update.sh"
|
||||
@ -77,6 +79,7 @@ eom
|
||||
bash -c "${update_cmd} ${branch}"
|
||||
popd >>/dev/null
|
||||
done
|
||||
popd
|
||||
}
|
||||
|
||||
main $@
|
||||
|
Loading…
Reference in New Issue
Block a user