mirror of
git://code.qt.io/qt/qt5.git
synced 2026-03-17 09:46:08 +08:00
Fix shellcheck complaints for openSUSE provisioning scripts
Change-Id: I5360a1b7b4c405d7ca9fedee8e100d933ec6e7b7 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io> Reviewed-by: Simo Fält <simo.falt@qt.io>
This commit is contained in:
@@ -3,7 +3,9 @@
|
||||
set -ex
|
||||
|
||||
BASEDIR=$(dirname "$0")
|
||||
source $BASEDIR/../common/shared/network_test_server_ip.txt
|
||||
# shellcheck source=../common/shared/network_test_server_ip.txt
|
||||
source "$BASEDIR/../common/shared/network_test_server_ip.txt"
|
||||
# shellcheck source=../common/unix/check_and_set_proxy.sh
|
||||
source "${BASH_SOURCE%/*}/../common/unix/check_and_set_proxy.sh"
|
||||
|
||||
sed -i '$ a\[Daemon\]\nAutolock=false\nLockOnResume=false' ~/.config/kscreenlockerrc
|
||||
@@ -17,6 +19,7 @@ sudo balooctl disable
|
||||
echo "Disable update notifications"
|
||||
sudo zypper -nq remove plasma5-pk-updates
|
||||
|
||||
# shellcheck disable=SC2031
|
||||
if [ "$http_proxy" != "" ]; then
|
||||
sudo sed -i 's/PROXY_ENABLED=\"no\"/PROXY_ENABLED=\"yes\"/' /etc/sysconfig/proxy
|
||||
sudo sed -i "s|HTTP_PROXY=\".*\"|HTTP_PROXY=\"$proxy\"|" /etc/sysconfig/proxy
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
#!/usr/bin/env bash
|
||||
# shellcheck source=../common/linux/disable-ntp_linux.sh
|
||||
source "${BASH_SOURCE%/*}/../common/linux/disable-ntp_linux.sh"
|
||||
|
||||
@@ -3,9 +3,10 @@
|
||||
set -ex
|
||||
|
||||
BASEDIR=$(dirname "$0")
|
||||
. $BASEDIR/../common/shared/sw_versions.txt
|
||||
# shellcheck source=../common/shared/sw_versions.txt
|
||||
. "$BASEDIR/../common/shared/sw_versions.txt"
|
||||
VERSION=$libclang_version
|
||||
URL="https://download.qt.io/development_releases/prebuilt/libclang/libclang-release_${VERSION//\./}-linux-Rhel7.2-gcc5.3-x86_64.7z"
|
||||
SHA1="bbdbbc0296f42310077539b7247d285386119ef4"
|
||||
|
||||
$BASEDIR/../common/unix/libclang.sh "$URL" "$SHA1" "$VERSION"
|
||||
"$BASEDIR/../common/unix/libclang.sh" "$URL" "$SHA1" "$VERSION"
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
|
||||
set -ex
|
||||
|
||||
$(dirname $0)/../common/linux/cmake_linux.sh
|
||||
"$(dirname "$0")/../common/linux/cmake_linux.sh"
|
||||
|
||||
@@ -35,6 +35,7 @@
|
||||
|
||||
# This script install Intel Parallel Studio XE Composer Edition for C++ Linux
|
||||
|
||||
# shellcheck source=../common/unix/DownloadURL.sh
|
||||
source "${BASH_SOURCE%/*}/../common/unix/DownloadURL.sh"
|
||||
|
||||
set -ex
|
||||
|
||||
@@ -33,4 +33,5 @@
|
||||
##
|
||||
#############################################################################
|
||||
|
||||
# shellcheck source=../common/unix/mqtt_broker.sh
|
||||
source "${BASH_SOURCE%/*}/../common/unix/mqtt_broker.sh"
|
||||
|
||||
@@ -33,4 +33,5 @@
|
||||
##
|
||||
#############################################################################
|
||||
|
||||
# shellcheck source=../common/linux/open62541.sh
|
||||
source "${BASH_SOURCE%/*}/../common/linux/open62541.sh"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env bash
|
||||
BASEDIR=$(dirname "$0")
|
||||
$BASEDIR/../common/unix/squishInstall.sh
|
||||
"$BASEDIR/../common/unix/squishInstall.sh"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user