minor fixes

master
BodgeMaster 2023-06-21 07:08:00 +02:00
parent 0d56e70688
commit 597ececb69
2 changed files with 4 additions and 2 deletions

View File

@ -157,11 +157,13 @@ the chosen mirror from the config file it generates.
press_any_key
xmirror
#TODO: also remove CPU architecture
TARGET_MIRROR="$(sed 's/repository=//;s|/musl$||' /etc/xbps.d/00-repository-main.conf)"
#TODO: select installation type
TARGET_TYPE="x86_64"
#TODO: also add CPU architecture
if grep "musl" <<< "$TARGET_TYPE"; then
TARGET_MIRROR="$TARGET_MIRROR/musl"
fi

View File

@ -22,12 +22,12 @@ function make_menuentry {
# $1 is the kernel path
# We dont want duplicate entries for /boot/vmlinuz symlink
if [ -L $1 ]; then
if [ -L "$1" ]; then
return 0
fi
# exclude garbage globbing results
if [ ! -f $1 ]; then
if [ ! -f "$1" ]; then
return 0
fi