cookutils diff cook @ rev 1148
cook: typo
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Nov 09 15:36:25 2021 +0000 (2021-11-09) |
parents | db1cfeb9ac36 |
children | 693995ddc517 |
line diff
1.1 --- a/cook Tue Jul 28 07:28:04 2020 +0000 1.2 +++ b/cook Tue Nov 09 15:36:25 2021 +0000 1.3 @@ -986,7 +986,7 @@ 1.4 fi 1.5 if [ -n "$LZMA_SRC" ]; then 1.6 cd $pkgdir/source 1.7 - if [ "$(ls -A tmp | wc -l)" -gl 1 -o -f "$(echo tmp/*)" ]; then 1.8 + if [ "$(ls -A tmp | wc -l)" -gt 1 -o -f "$(echo tmp/*)" ]; then 1.9 mv tmp tmp-1; mkdir tmp 1.10 mv tmp-1 tmp/${SOURCE:-$PACKAGE}-$VERSION 1.11 fi 1.12 @@ -1442,7 +1442,7 @@ 1.13 # cook <package> -b 1.14 [ -n "$block" -o "$2" == '-b' ] && { 1.15 action 'Blocking package "%s"' "$1" 1.16 - [ $(grep "^$1$" $blocked) ] || echo "$1" >> $blocked 1.17 + grep -q "^$1$" $blocked || echo "$1" >> $blocked 1.18 status; newline 1.19 touch $activity 1.20 exit 0 1.21 @@ -1807,7 +1807,7 @@ 1.22 : ${HOST_ARCH=$ARCH} 1.23 debug "$(_ 'Host arch %s' "$HOST_ARCH")" 1.24 # Handle arm{v6hf,v7,..} 1.25 - if ! $(echo "$HOST_ARCH" | egrep -q "${ARCH%v[0-9]*}|any"); then 1.26 + if ! echo "$HOST_ARCH" | egrep -q "${ARCH%v[0-9]*}|any"; then 1.27 _ 'cook: %s' "HOST_ARCH=$HOST_ARCH" 1.28 error="$(_ "package \"%s\" doesn't cook or is not included in %s" "$pkg" "$ARCH")" 1.29 _ 'cook: %s' "error"