fix: ignore error when yafti.yml present

This commit is contained in:
xynydev 2024-01-27 19:07:31 +02:00
parent 401cf88e87
commit 47e70e07da

View file

@ -7,8 +7,8 @@ MODULE_DIRECTORY="${MODULE_DIRECTORY:-"/tmp/modules"}"
FIRSTBOOT_DATA="/usr/share/ublue-os/firstboot"
# doesn't overwrite user's yafti.yml
cp -n "$MODULE_DIRECTORY/yafti/yafti.yml" "$FIRSTBOOT_DATA/yafti.yml"
# doesn't overwrite user's yafti.yml (ignores error)
cp -n "$MODULE_DIRECTORY/yafti/yafti.yml" "$FIRSTBOOT_DATA/yafti.yml" || true
cp -r "$MODULE_DIRECTORY/yafti/launcher/" "$FIRSTBOOT_DATA/launcher/"
FIRSTBOOT_SCRIPT="${FIRSTBOOT_DATA}/launcher/login-profile.sh"