diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-07-21 20:19:53 +0100 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-07-21 20:19:53 +0100 |
| commit | 86142b7e814ebc40e1ca88a21a7483c92398a45b (patch) | |
| tree | ea73776c89a1a4ed2129307545d755245d29186d /include | |
| parent | 1514e82be07d1a0b3abe54d010b467e24ee20fea (diff) | |
init.sh: fix indentation in gentoo check
the submitted messed up indentation, yeah
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include')
| -rw-r--r-- | include/init.sh | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/include/init.sh b/include/init.sh index 3c20e8bb..d5b8d14b 100644 --- a/include/init.sh +++ b/include/init.sh @@ -88,18 +88,19 @@ xbmkpkg() fi if [ "$2" == "gentoo" ]; then - if [ -z "$pkg_use" ] || [ -z "$pkg_use_file" ]; then - err "pkg_use/pkg_use_file not both set" "xbmkpkg" "$@" - fi + + if [ -z "$pkg_use" ] || [ -z "$pkg_use_file" ]; then + err "pkg_use/pkg_use_file not both set" "xbmkpkg" "$@" + fi printf "Updating package use...\n" printf "Writing into $pkg_use_file..." - if [ ! -d `dirname $pkg_use_file` ]; then - mkdir `dirname $pkg_use_file` - fi + if [ ! -d `dirname $pkg_use_file` ]; then + mkdir `dirname $pkg_use_file` + fi - printf "%s\n" "$pkg_use" >> $pkg_use_file + printf "%s\n" "$pkg_use" >> $pkg_use_file fi x_ $pkg_add $pkglist |
