Skip to content

Commit

Permalink
Update pkgbuild.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
rern committed Jun 3, 2024
1 parent 579349f commit 3a1775f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkgbuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,9 @@ pkgname=$( dialog "${optbox[@]}" --output-fd 1 --no-items --menu "

[[ $? != 0 ]] && exit

if [[ $pkgname == snapcast && ! -e /boot/kernel8.img ]] && ! grep -q swap /etc/fstab; then
echo "$pkgname requires swap partition." && exit
if [[ ! -e /boot/kernel8.img ]]; then
sed -i 's/ -mno-omit-leaf-frame-pointer//' /etc/makepkg.conf
[[ $pkgname == snapcast ]] && ! grep -q swap /etc/fstab && echo "$pkgname requires swap partition." && exit
fi

urlrern=https://github.com/rern/rern.github.io/raw/main
Expand Down

0 comments on commit 3a1775f

Please sign in to comment.