fix: trim windows line endings

This commit is contained in:
xerus2000 2023-04-21 00:24:02 +02:00
parent 6acb7ca0bc
commit 922ff0ce6c
1 changed files with 2 additions and 2 deletions

View File

@ -24,14 +24,14 @@ getcontent() {
for arg; do
if test -z "$noexec" && test -x "$arg"
then "$arg"
else cat "$arg"
else cat "$arg" | tr -d '\r'
fi
done
}
# Get available package entries for given package
getentries() {
cat "$handlersfile" | while read handler
cat "$handlersfile" | tr -d '\r' | while read handler
do find "$dir_packages/$1/" -depth -type f -name "$handler*" 2>/dev/null | tac
done
}