mkosi: Reduce postinst script indentation

This commit is contained in:
Daan De Meyer 2023-02-21 15:23:15 +01:00
parent d2a0ca2440
commit 1ad84c9af8

View file

@ -1,7 +1,10 @@
#!/bin/sh
# SPDX-License-Identifier: LGPL-2.1-or-later
if [ "$1" = "final" ]; then
if [ "$1" = "build" ]; then
exit 0
fi
if [ -n "$SANITIZERS" ]; then
LD_PRELOAD=$(ldd /usr/lib/systemd/systemd | grep libasan.so | awk '{print $3}')
@ -62,4 +65,3 @@ EOF
-e "\$aIMAGE_VERSION=$IMAGE_VERSION" \
/usr/lib/os-release
fi
fi