Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ start() {
echo "Copying default config files..."
cp -rn "$DEFAULT_DIR/." "$EXTENDED_DIR/"

# Remove invalid symlinks that may exist in the extended config directory
# The busybox `find` command does not support `-xtype l`, so we use a workaround to find broken symlinks
echo "Removing invalid symlinks..."
find "$EXTENDED_DIR" -type l ! -exec test -e {} \; -exec rm -v {} \;

# Remove old .default files and create new ones for files that differ
echo "Updating .default files..."
find "$EXTENDED_DIR" -name "*.default" -exec rm -v {} +
Expand Down
Loading