Совместимость со старым bash

This commit is contained in:
Andrei Astafev 2019-02-19 12:07:47 +03:00
parent 1ff29c5c87
commit 9217079b4a

View File

@ -178,13 +178,11 @@ EOF
export -f generate_configuration
BUILD_TYPES=()
if [ "x$SINGLE_TYPE" != "xn" ]; then
BUILD_TYPES=("${SINGLE_TYPE}")
else
[ "x$QTCREATOR" == "xy" ] && BUILD_TYPES=("${BUILD_TYPES[@]}" "${QTCREATOR_BUILD_TYPES[@]}")
[ "x$CMAKE" == "xy" ] && BUILD_TYPES=("${BUILD_TYPES[@]}" "${CMAKE_BUILD_TYPES[@]}")
[ "x$QTCREATOR" == "xy" ] && BUILD_TYPES=("${QTCREATOR_BUILD_TYPES[@]}")
[ "x$CMAKE" == "xy" ] && BUILD_TYPES=("${CMAKE_BUILD_TYPES[@]}")
fi
if [ ${#BUILD_TYPES[@]} -eq 0 ]; then