Merge pull request #3894 from LMMS/fix/scripts
Fix shellcheck failing on master
This commit is contained in:
@@ -1,15 +1,16 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
CPUS=$(cat /proc/cpuinfo | grep bogo | wc -l)
|
||||
CPUS=$(grep -c bogo /proc/cpuinfo)
|
||||
|
||||
cd /lmms
|
||||
|
||||
mkdir build
|
||||
cd build
|
||||
|
||||
../cmake/build_mingw$1.sh
|
||||
../cmake/build_mingw"$1".sh
|
||||
|
||||
echo Building on $CPUS CPUs
|
||||
echo Building on "$CPUS" CPUs
|
||||
make -j$((CPUS+1))
|
||||
|
||||
make package
|
||||
|
||||
@@ -2,5 +2,5 @@
|
||||
|
||||
set -e
|
||||
|
||||
docker build -t lmms-build ${TRAVIS_BUILD_DIR}/.travis/linux.cross.win32/
|
||||
docker build -t lmms-build "${TRAVIS_BUILD_DIR}/.travis/linux.cross.win32/"
|
||||
|
||||
|
||||
@@ -3,5 +3,5 @@
|
||||
set -e
|
||||
|
||||
export CMAKE_OPTS="$CMAKE_FLAGS -DUSE_WERROR=ON"
|
||||
docker run -v ${TRAVIS_BUILD_DIR}:/lmms:rw lmms-build /bin/sh /lmms/.travis/linux.cross.win32/script.sh
|
||||
docker run -v "${TRAVIS_BUILD_DIR}":/lmms:rw lmms-build /bin/sh /lmms/.travis/linux.cross.win32/script.sh
|
||||
|
||||
|
||||
@@ -2,5 +2,5 @@
|
||||
|
||||
set -e
|
||||
|
||||
docker build -t lmms-build ${TRAVIS_BUILD_DIR}/.travis/linux.cross.win64/
|
||||
docker build -t lmms-build "${TRAVIS_BUILD_DIR}/.travis/linux.cross.win64/"
|
||||
|
||||
|
||||
@@ -3,5 +3,5 @@
|
||||
set -e
|
||||
|
||||
export CMAKE_OPTS="$CMAKE_FLAGS -DUSE_WERROR=ON"
|
||||
docker run -v ${TRAVIS_BUILD_DIR}:/lmms:rw lmms-build /bin/sh /lmms/.travis/linux.cross.win64/script.sh
|
||||
docker run -v "${TRAVIS_BUILD_DIR}":/lmms:rw lmms-build /bin/sh /lmms/.travis/linux.cross.win64/script.sh
|
||||
|
||||
|
||||
Reference in New Issue
Block a user