ssp/script/ci_install_icc.sh

24 lines
754 B
Bash
Raw Normal View History

2021-02-24 18:06:09 +01:00
#!/bin/bash
# SPDX-FileCopyrightText: 2020 Intel Corporation
#
# SPDX-License-Identifier: MIT
URL=$1
COMPONENTS=$2
curl --output webimage.sh --url "$URL" --retry 5 --retry-delay 5
chmod +x webimage.sh
./webimage.sh -x -f webimage_extracted --log extract.log
rm -rf webimage.sh
WEBIMAGE_NAME=$(ls -1 webimage_extracted/)
if [ -z "$COMPONENTS" ]; then
2021-02-24 19:23:49 +01:00
webimage_extracted/"$WEBIMAGE_NAME"/bootstrapper -s --action install --eula=accept --continue-with-optional-error=yes --log-dir=.
2021-02-24 18:06:09 +01:00
installer_exit_code=$?
else
2021-02-24 19:23:49 +01:00
webimage_extracted/"$WEBIMAGE_NAME"/bootstrapper -s --action install --components="$COMPONENTS" --eula=accept --continue-with-optional-error=yes --log-dir=.
2021-02-24 18:06:09 +01:00
installer_exit_code=$?
fi
rm -rf webimage_extracted
exit $installer_exit_code