Запрет вызова с пустым списком аргументов

This commit is contained in:
Andrei Astafev 2019-02-19 11:22:53 +03:00
parent 36487b07d2
commit 565f79f5ba

View File

@ -199,11 +199,11 @@ fi
if [ -x "$(command -v parallel)" ]; then
PV=$(parallel --version | head -n 1 | awk '{ print $3; }')
if [ "$PV" -lt "20131121" ]; then
parallel generate_configuration ::: "${BUILD_TYPES[@]}"
parallel -r generate_configuration ::: "${BUILD_TYPES[@]}"
elif [ "$PV" -lt "20141023" ]; then
parallel --no-notice generate_configuration ::: "${BUILD_TYPES[@]}"
parallel -r --no-notice generate_configuration ::: "${BUILD_TYPES[@]}"
else
parallel --will-cite generate_configuration ::: "${BUILD_TYPES[@]}"
parallel -r --will-cite generate_configuration ::: "${BUILD_TYPES[@]}"
fi
else
for T in "${BUILD_TYPES[@]}"; do generate_configuration "${T}"; done