Skip to content

Commit

Permalink
fix: ignore error when yafti.yml present
Browse files Browse the repository at this point in the history
  • Loading branch information
xynydev committed Jan 27, 2024
1 parent 401cf88 commit 47e70e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/yafti/yafti.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 47e70e0

Please sign in to comment.