minor fixes
parent
0d56e70688
commit
597ececb69
|
@ -157,11 +157,13 @@ the chosen mirror from the config file it generates.
|
||||||
press_any_key
|
press_any_key
|
||||||
|
|
||||||
xmirror
|
xmirror
|
||||||
|
#TODO: also remove CPU architecture
|
||||||
TARGET_MIRROR="$(sed 's/repository=//;s|/musl$||' /etc/xbps.d/00-repository-main.conf)"
|
TARGET_MIRROR="$(sed 's/repository=//;s|/musl$||' /etc/xbps.d/00-repository-main.conf)"
|
||||||
|
|
||||||
#TODO: select installation type
|
#TODO: select installation type
|
||||||
TARGET_TYPE="x86_64"
|
TARGET_TYPE="x86_64"
|
||||||
|
|
||||||
|
#TODO: also add CPU architecture
|
||||||
if grep "musl" <<< "$TARGET_TYPE"; then
|
if grep "musl" <<< "$TARGET_TYPE"; then
|
||||||
TARGET_MIRROR="$TARGET_MIRROR/musl"
|
TARGET_MIRROR="$TARGET_MIRROR/musl"
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -22,12 +22,12 @@ function make_menuentry {
|
||||||
# $1 is the kernel path
|
# $1 is the kernel path
|
||||||
|
|
||||||
# We don’t want duplicate entries for /boot/vmlinuz symlink
|
# We don’t want duplicate entries for /boot/vmlinuz symlink
|
||||||
if [ -L $1 ]; then
|
if [ -L "$1" ]; then
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# exclude garbage globbing results
|
# exclude garbage globbing results
|
||||||
if [ ! -f $1 ]; then
|
if [ ! -f "$1" ]; then
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue