summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2016-11-04 21:58:41 +0900
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2016-11-04 08:58:41 -0400
commit9156493171cf2d78e1ac1a3746c385b0e281acf1 (patch)
tree42e344af44b8a4342de0c0914cb25e76f4baeec2
parentc4c50112ecc549e839582586d435dc170455c91b (diff)
downloadsystemd-9156493171cf2d78e1ac1a3746c385b0e281acf1.tar.gz
systemd-9156493171cf2d78e1ac1a3746c385b0e281acf1.tar.bz2
systemd-9156493171cf2d78e1ac1a3746c385b0e281acf1.zip
kernel-install: use exit instead of return (#4565)
/bin/kernel-install: line 143: return: can only `return' from a function or sourced script https://bugzilla.redhat.com/show_bug.cgi?id=1391829
-rw-r--r--src/kernel-install/kernel-install4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kernel-install/kernel-install b/src/kernel-install/kernel-install
index 0c0ee718ac..a95b9717f0 100644
--- a/src/kernel-install/kernel-install
+++ b/src/kernel-install/kernel-install
@@ -127,7 +127,7 @@ case $COMMAND in
"$f" add "$KERNEL_VERSION" "$BOOT_DIR_ABS" "$KERNEL_IMAGE"
x=$?
if [[ $x == $SKIP_REMAINING ]]; then
- return 0
+ exit 0
fi
((ret+=$x))
fi
@@ -140,7 +140,7 @@ case $COMMAND in
"$f" remove "$KERNEL_VERSION" "$BOOT_DIR_ABS"
x=$?
if [[ $x == $SKIP_REMAINING ]]; then
- return 0
+ exit 0
fi
((ret+=$x))
fi