Запрет вызова с пустым списком аргументов
This commit is contained in:
parent
36487b07d2
commit
565f79f5ba
6
cmake.sh
6
cmake.sh
@ -199,11 +199,11 @@ fi
|
|||||||
if [ -x "$(command -v parallel)" ]; then
|
if [ -x "$(command -v parallel)" ]; then
|
||||||
PV=$(parallel --version | head -n 1 | awk '{ print $3; }')
|
PV=$(parallel --version | head -n 1 | awk '{ print $3; }')
|
||||||
if [ "$PV" -lt "20131121" ]; then
|
if [ "$PV" -lt "20131121" ]; then
|
||||||
parallel generate_configuration ::: "${BUILD_TYPES[@]}"
|
parallel -r generate_configuration ::: "${BUILD_TYPES[@]}"
|
||||||
elif [ "$PV" -lt "20141023" ]; then
|
elif [ "$PV" -lt "20141023" ]; then
|
||||||
parallel --no-notice generate_configuration ::: "${BUILD_TYPES[@]}"
|
parallel -r --no-notice generate_configuration ::: "${BUILD_TYPES[@]}"
|
||||||
else
|
else
|
||||||
parallel --will-cite generate_configuration ::: "${BUILD_TYPES[@]}"
|
parallel -r --will-cite generate_configuration ::: "${BUILD_TYPES[@]}"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
for T in "${BUILD_TYPES[@]}"; do generate_configuration "${T}"; done
|
for T in "${BUILD_TYPES[@]}"; do generate_configuration "${T}"; done
|
||||||
|
Loading…
Reference in New Issue
Block a user