aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan-Simon Möller <jsmoeller@linuxfoundation.org>2015-12-05 13:12:23 +0100
committerJan-Simon Möller <jsmoeller@linuxfoundation.org>2015-12-05 19:21:30 +0100
commit6df1067fd87f68e67dad5cf5bd85acfea4a17abb (patch)
tree2c838660789d1e8bea5e20f269cf2638cfcf7ac3
parent0c85137679d6d2c9e9039545a2446b82210f8633 (diff)
Bugfix for envsetup.sh script.
A sourced script cannot use exit as it will terminate the shell session. "return -1" is not supported due to the negative value. Use "return 1" instead. Change-Id: I7452b7939c5c843eaf76b6600e5eb55c06d17668 Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
-rw-r--r--scripts/envsetup.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/envsetup.sh b/scripts/envsetup.sh
index 27d73a7e2..d00330128 100644
--- a/scripts/envsetup.sh
+++ b/scripts/envsetup.sh
@@ -2,7 +2,7 @@
if [ -z $1 ]; then
echo -e "Usage: source envsetup.sh <board/device> [build dir]"
- return -1
+ return 1
fi
case "$1" in
@@ -14,7 +14,7 @@ case "$1" in
copy_mm_packages $1
if [ $? -ne 0 ]; then
echo "Copying gfx drivers and multimedia packages for '$1' failed."
- return -1
+ return 1
fi
fi