summaryrefslogtreecommitdiff
path: root/util/abuild
diff options
context:
space:
mode:
Diffstat (limited to 'util/abuild')
-rwxr-xr-xutil/abuild/abuild6
1 files changed, 3 insertions, 3 deletions
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