mirror of
https://gitlab.com/fedora/bootc/base-images.git
synced 2026-09-01 05:50:45 +00:00
fix(postprocess): fix shell crash in bootloader preset logic
The use of the `&&` operator combined with `set -e` caused the postprocess script to exit with code 1 when `$VERSION_ID` was less than 43. Fixes: https://gitlab.com/fedora/bootc/base-images/-/merge_requests/456 Closes: https://gitlab.com/fedora/bootc/base-images/-/work_items/79
This commit is contained in:
parent
7d095577c5
commit
6493dc2601
1 changed files with 6 additions and 4 deletions
|
|
@ -21,13 +21,15 @@ postprocess:
|
|||
|
||||
case "$ID" in
|
||||
fedora)
|
||||
[ "$VERSION_ID" -ge 43 ] && echo "enable bootloader-update.service" >> "$preset_file_name"
|
||||
if [ "$VERSION_ID" -ge 43 ]; then
|
||||
echo "enable bootloader-update.service" >> "$preset_file_name"
|
||||
fi
|
||||
;;
|
||||
|
||||
centos)
|
||||
[ "$VERSION_ID" -ge 9 ] && echo "enable bootloader-update.service" >> "$preset_file_name"
|
||||
if [ "$VERSION_ID" -ge 9 ]; then
|
||||
echo "enable bootloader-update.service" >> "$preset_file_name"
|
||||
fi
|
||||
;;
|
||||
|
||||
*) ;;
|
||||
esac
|
||||
# Undo RPM scripts enabling units; we want the presets to be canonical
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue