Skip to content
Open
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
4 changes: 2 additions & 2 deletions src/utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ function ASSERT_KEEPFILE_EXISTS {
}

function parse_keepfile {
# Remove comments, remove whitespace and remove empty lines, then sort
sed -e 's/#.*$//' -e 's/[ \t]*//g' -e '/^\s*$/d' $1 | sort
# Remove comments, trim lines, convert whitespaces between words into newlines, and remove empty lines, then sort
sed -e 's/#.*$//' -e 's/^[ \t\r]*//' -e 's/[ \t\r]*$//' -e 's/[ \t\r]\+/\n/g' -e '/^\s*$/d' $1 | sort
}

# Prints the packages in one and not the other, and vice-versa
Expand Down