hpcc-systems/HPCC-Platform — pull request #3758 by wangkx (2012-12-03 20:54:50+00:00)
Title: HPCC-8367 Modify Preflight script for backward compatibility

New Preflight script is introduced for build 3.10.x. But, using that
script, 3.10 esp cannot properly report preflight information for 3.8
components and vice versa. This fix adds backward compatibility to
the new Preflight script. Since the arguments of a preflght command
line for 3.10.x always start with '-', the basic logic of the fix is:

if [ "${1:0:1}" == '-' ]; then
copy the content from 3.10.x preflight script
else
copy the content from 3.8.x preflight script
fi

Signed-off-by: Kevin Wang