fix: trim windows line endings
This commit is contained in:
parent
6acb7ca0bc
commit
922ff0ce6c
1 changed files with 2 additions and 2 deletions
4
instalee
4
instalee
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue