Skip to content

Commit

Permalink
scripts:gen_sg2042_image:avoid returning non-zero value on exit
Browse files Browse the repository at this point in the history
When CHIP_NUM=single, [ -e /etc/systemd/system/powergood.service] return 1,
this will be considered as a compilation problem and exit directly because the building environment has executed 'set -e'.

Signed-off-by: chunzhi.lin <[email protected]>
  • Loading branch information
Chunzhi-Lin authored and xingxg2022 committed Nov 19, 2024
1 parent d4a29ab commit 133e2f4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/gen_sg2042_img.sh
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ EOF

#enable powergood service in host to adapt BMC wdt function
echo enable powergood service
[ -e /etc/systemd/system/powergood.service ] && systemctl enable powergood.service
if [ -e /etc/systemd/system/powergood.service ]; then systemctl enable powergood.service; fi

exit
EOT
Expand Down Expand Up @@ -274,7 +274,7 @@ EOF

#enable powergood service in host to adapt BMC wdt function
echo enable powergood service
[ -e /etc/systemd/system/powergood.service ] && systemctl enable powergood.service
if [ -e /etc/systemd/system/powergood.service ]; then systemctl enable powergood.service; fi

exit

Expand Down Expand Up @@ -457,7 +457,7 @@ EOF

#enable powergood service in host to adapt BMC wdt function
echo enable powergood service
[ -e /etc/systemd/system/powergood.service ] && systemctl enable powergood.service
if [ -e /etc/systemd/system/powergood.service ]; then systemctl enable powergood.service; fi

exit
EOT
Expand Down

0 comments on commit 133e2f4

Please sign in to comment.