From 18d7320d17622e3fb87caae3eea645d8b06f942f Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Wed, 22 Apr 2009 08:10:48 +0000 Subject: Remove the requirement for payload.sh files to be executable. This helps if the file is generated from patches, esp. if that happens often (eg. with quilt) Signed-off-by: Patrick Georgi Acked-by: Carl-Daniel Hailfinger git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4165 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- util/abuild/abuild | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'util') diff --git a/util/abuild/abuild b/util/abuild/abuild index 0fd4226b99..ac268eaa0c 100755 --- a/util/abuild/abuild +++ b/util/abuild/abuild @@ -127,12 +127,12 @@ function create_config # get a working payload for the board if we have one. # the --payload option expects a directory containing - # an executable shell script payload.sh + # a shell script payload.sh # Usage: payload.sh [VENDOR] [DEVICE] # the script returns an absolute path to the payload binary. - if [ -x $payloads/payload.sh ]; then - PAYLOAD=`$payloads/payload.sh $VENDOR $MAINBOARD` + if [ -f $payloads/payload.sh ]; then + PAYLOAD=`sh $payloads/payload.sh $VENDOR $MAINBOARD` printf "Using payload $PAYLOAD\n" fi -- cgit v1.2.3