pkgtools

morpheus pkg tools
git clone git://git.2f30.org/pkgtools
Log | Files | Refs | README | LICENSE

commit 317b2886d5b9194f4756cd97ad72efb57fb106bf
parent 06f066d7ccdc2565171c77ba06fab0adf0a75e09
Author: sin <sin@2f30.org>
Date:   Tue, 10 Jun 2014 15:55:26 +0100

Use raw mode for read

Diffstat:
Mfetchpkg | 2+-
Msearchpkg | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/fetchpkg b/fetchpkg @@ -1,6 +1,6 @@ #!/bin/sh -while read pkg; do +while read -r pkg; do filename=$(echo $(basename "$pkg") | sed 's/%23/#/') curl "$pkg" > "$filename" done diff --git a/searchpkg b/searchpkg @@ -16,7 +16,7 @@ if test -z "$1"; then usage fi -curl -s "$mirror/PACKAGES" | while read pkg; do +curl -s "$mirror/PACKAGES" | while read -r pkg; do for i in "$@"; do echo "$pkg" | grep -q "$i" if test "$?" -eq 0; then