[Bf-blender-cvs] [d6169384491] master: install_deps.sh: show which parameter is wrong
Sybren A. Stüvel
noreply at git.blender.org
Tue Dec 24 12:14:50 CET 2019
Commit: d6169384491bf9c4b944d67fadf802bec861adda
Author: Sybren A. Stüvel
Date: Tue Dec 24 11:27:26 2019 +0100
Branches: master
https://developer.blender.org/rBd6169384491bf9c4b944d67fadf802bec861adda
install_deps.sh: show which parameter is wrong
Previously, when an unknown parameter was passed to `install_deps.sh`,
the script would just show "Wrong parameter!" without any context. This
can make it hard to figure out what's exactly going wrong. Now it prints
which parameter it thinks is wrong.
===================================================================
M build_files/build_environment/install_deps.sh
===================================================================
diff --git a/build_files/build_environment/install_deps.sh b/build_files/build_environment/install_deps.sh
index 68eceb21845..b6184ecb33a 100755
--- a/build_files/build_environment/install_deps.sh
+++ b/build_files/build_environment/install_deps.sh
@@ -767,7 +767,7 @@ while true; do
;;
*)
PRINT ""
- ERROR "Wrong parameter! Usage:"
+ ERROR "Wrong parameter '$1'; Usage:"
PRINT ""
PRINT "`eval _echo "$COMMON_INFO"`"
PRINT ""
More information about the Bf-blender-cvs
mailing list