aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan-Simon Möller <jsmoeller@linuxfoundation.org>2015-12-05 18:55:48 +0100
committerJan-Simon Möller <jsmoeller@linuxfoundation.org>2015-12-05 19:32:51 +0100
commitb67bcedadae03ea320ee95cda59993b994b09a5d (patch)
tree6d77689ed3bc1931d1f6b9ffec84573e5b145be6
parentd8ec284f3b7f6854851cac3cbf6f211425af142b (diff)
Fix errors in setup scripts
- return is never negative in bash - add exit value 1 to copy_mm_software_lcb.sh Change-Id: I36f39927967709f23543426da95a66da68c86143 Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
-rwxr-xr-xmeta-rcar-gen2/copy_mm_software_lcb.sh2
-rw-r--r--meta-rcar-gen2/scripts/setup_mm_packages.sh6
2 files changed, 4 insertions, 4 deletions
diff --git a/meta-rcar-gen2/copy_mm_software_lcb.sh b/meta-rcar-gen2/copy_mm_software_lcb.sh
index e8e8b82..016c0c0 100755
--- a/meta-rcar-gen2/copy_mm_software_lcb.sh
+++ b/meta-rcar-gen2/copy_mm_software_lcb.sh
@@ -23,7 +23,7 @@ find_change_name(){
change_names() {
if [ ! -e $1 ]; then
echo "Directory $1 not existed. Exit !"
- exit
+ exit 1
fi
current_path=`pwd`
cd $1
diff --git a/meta-rcar-gen2/scripts/setup_mm_packages.sh b/meta-rcar-gen2/scripts/setup_mm_packages.sh
index 9fed901..b9745d1 100644
--- a/meta-rcar-gen2/scripts/setup_mm_packages.sh
+++ b/meta-rcar-gen2/scripts/setup_mm_packages.sh
@@ -32,7 +32,7 @@ function copy_mm_packages() {
echo -e "'$DOWNLOAD_DIR' directory."
echo -e " $ZIP_1"
echo -e " $ZIP_2"
- return -1
+ return 1
fi
fi
@@ -42,7 +42,7 @@ function copy_mm_packages() {
cd ../..
else
echo "scripts to copy GFX drivers for '$1' not found."
- return -1
+ return 1
fi
if [ -f meta-renesas/meta-rcar-gen2/$COPY_MM_SCRIPT ]; then
@@ -51,6 +51,6 @@ function copy_mm_packages() {
cd ../..
else
echo "scripts to copy MM software for '$1' not found."
- return -1
+ return 1
fi
}