Commit 3b008b8c authored by Vitaly Lipatov's avatar Vitaly Lipatov

assert_var(): small improvement

parent d49eae3c
......@@ -251,12 +251,13 @@ assert_var()
{
local i re
for i in $@ ; do
re=$(eval echo \$$i)
for i in "$@" ; do
re="$(eval echo \$$i)"
if [ -z "$re" ]
then
debug_print_backtrace
fatal "assert: $i nonexist"
echo "assert: $i variable nonexist" >&2
fatal "stop the program"
# FIXME :
# Strange behavior with echo
# (may be erase etersoft-build-utils/bin catalog)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment