path: root/scripts
diff options
authorStephen Warren <>2015-10-03 13:56:48 -0600
committerTom Rini <>2015-10-24 13:50:34 -0400
commit47b71644500f7dff768254570ff62c6e985e4bc3 (patch)
treeb8e23263e642ae4cdfdafadfd490f1e22d123ca4 /scripts
parent4a28274227d085d77d46709dc94ccc3d69610f53 (diff)
downloadblackbird-obmc-uboot-47b71644500f7dff768254570ff62c6e985e4bc3.tar.gz fix pre-requisite detection
In the following snippet: if [ ! -x `which $prereq` ]; then When $prereq does not exist, `which $prereq` evaluates to the empty string, which results in *no* argument being passed to the -x operator, which then evaluates to true, which is the equivalent of the prereq having been found. In order for this to fail as expected, we must pass an empty argument, which then causes -x to fail. Do this by wrapping the `` in quotes so there's always an argument to -x, even if the value of the argument is zero-length. Signed-off-by: Stephen Warren <> Reviewed-by: Simon Glass <> Tested-by: Simon Glass <>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud