mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-03-08 20:58:20 +03:00
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
This commit is contained in:
parent
c4c50112ec
commit
9156493171
@ -127,7 +127,7 @@ case $COMMAND in
|
|||||||
"$f" add "$KERNEL_VERSION" "$BOOT_DIR_ABS" "$KERNEL_IMAGE"
|
"$f" add "$KERNEL_VERSION" "$BOOT_DIR_ABS" "$KERNEL_IMAGE"
|
||||||
x=$?
|
x=$?
|
||||||
if [[ $x == $SKIP_REMAINING ]]; then
|
if [[ $x == $SKIP_REMAINING ]]; then
|
||||||
return 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
((ret+=$x))
|
((ret+=$x))
|
||||||
fi
|
fi
|
||||||
@ -140,7 +140,7 @@ case $COMMAND in
|
|||||||
"$f" remove "$KERNEL_VERSION" "$BOOT_DIR_ABS"
|
"$f" remove "$KERNEL_VERSION" "$BOOT_DIR_ABS"
|
||||||
x=$?
|
x=$?
|
||||||
if [[ $x == $SKIP_REMAINING ]]; then
|
if [[ $x == $SKIP_REMAINING ]]; then
|
||||||
return 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
((ret+=$x))
|
((ret+=$x))
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user