Fix & silence shellcheck warnings

This commit is contained in:
Lukas W committed 2017-10-19 09:48:08 +02:00
1 parent 8927ceaed5
commit 72501a0f2f
2 files changed
+5 -2

No files matched your search

+2 -1
View File
@@ -1,6 +1,7 @@
#!/usr/bin/env bash
if [ $QT5 ]; then
if [ "$QT5" ]; then
unset QTDIR QT_PLUGIN_PATH LD_LIBRARY_PATH
# shellcheck disable=SC1091
source /opt/qt58/bin/qt58-env.sh
fi
+3 -1
View File
@@ -18,6 +18,7 @@ DESKTOPFILE="${APPDIR}usr/share/applications/lmms.desktop"
STRIP=""
# Don't strip for Debug|RelWithDebInfo builds
# shellcheck disable=SC2193
if [[ "@CMAKE_BUILD_TYPE@" == *"Deb"* ]]; then
STRIP="-no-strip"
fi
@@ -51,7 +52,8 @@ fi
echo -e "\nWriting verbose output to \"${LOGFILE}\""
# Ensure linuxdeployqt uses the same qmake version as cmake
export PATH="$(dirname "@QT_QMAKE_EXECUTABLE@")":$PATH
export PATH
PATH="$(dirname "@QT_QMAKE_EXECUTABLE@")":$PATH
# Fetch portable linuxdeployqt if cache is older than $DAYSOLD
echo -e "\nDownloading linuxdeployqt to ${LINUXDEPLOYQT}..."