aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorFathi Boudra <fathi.boudra@linaro.org>2013-01-27 09:04:14 +0200
committerFathi Boudra <fathi.boudra@linaro.org>2013-01-27 09:04:14 +0200
commit0fdab13aa6bc285a1ccace1a57f476aea51e64af (patch)
tree8baf1374cb0a335637bfe03d3eecfcfb9a1a9c6c /scripts
parentba41696a999defdc2cf53fd44e5568e457f3e903 (diff)
scripts/package_kernel: fix can only `return' from a function or sourced script
Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/package_kernel12
1 files changed, 6 insertions, 6 deletions
diff --git a/scripts/package_kernel b/scripts/package_kernel
index ee8e666..c2064d5 100755
--- a/scripts/package_kernel
+++ b/scripts/package_kernel
@@ -645,13 +645,13 @@ test "$do_test_build_source_pkg" == "true" && {
}
test "$do_publish_source_pkg" == "true" && {
- test "$keyarg" == "-us -uc" && {
+ if [ "$keyarg" == "-us -uc" ]; then
echo "skip publish_source_pkg, key not provided"
- return 0
- }
- cd kernel_build
- dput $HOST_PPA *.changes
- cd ..
+ else
+ cd kernel_build
+ dput $HOST_PPA *.changes
+ cd ..
+ fi
}
test "$do_create_artifact_dir" == "true" && {