00-compress-info-files.sh: replace echo | grep with [[ ]]
This commit is contained in:
parent
bec3eafad4
commit
cdb6bf6e94
1 changed files with 2 additions and 3 deletions
|
@ -21,12 +21,11 @@ hook() {
|
||||||
[ "$j" = "" ] && continue
|
[ "$j" = "" ] && continue
|
||||||
[ "$j" = "/usr/share/info/dir" ] && continue
|
[ "$j" = "/usr/share/info/dir" ] && continue
|
||||||
# Ignore compressed files.
|
# Ignore compressed files.
|
||||||
if $(echo "$j"|grep -q '.*.gz$'); then
|
if [[ "$j" =~ .*.gz$ ]]; then
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
# Ignore non info files.
|
# Ignore non info files.
|
||||||
if ! $(echo "$j"|grep -q '.*.info$') && \
|
if ! [[ "$j" =~ .*.info$ ]] && ! [[ "$j" =~ .*.info-[0-9]*$ ]]; then
|
||||||
! $(echo "$j"|grep -q '.*.info-[0-9]*$'); then
|
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
if [ -h ${PKGDESTDIR}/"$j" ]; then
|
if [ -h ${PKGDESTDIR}/"$j" ]; then
|
||||||
|
|
Loading…
Reference in a new issue