04-create-xbps-metadata-scripts.sh: replace echo | grep with [[ ]]
This commit is contained in:
parent
a00d546dce
commit
13b5d09803
|
@ -302,7 +302,7 @@ _EOF
|
||||||
for f in ${triggers}; do
|
for f in ${triggers}; do
|
||||||
targets=$($XBPS_TRIGGERSDIR/$f targets)
|
targets=$($XBPS_TRIGGERSDIR/$f targets)
|
||||||
for j in ${targets}; do
|
for j in ${targets}; do
|
||||||
if ! $(echo $j|grep -q pre-${action}); then
|
if ! [[ $j =~ pre-${action} ]]; then
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
printf "\t\${TRIGGERSDIR}/$f run $j \${PKGNAME} \${VERSION} \${UPDATE} \${CONF_FILE}\n" >> $tmpf
|
printf "\t\${TRIGGERSDIR}/$f run $j \${PKGNAME} \${VERSION} \${UPDATE} \${CONF_FILE}\n" >> $tmpf
|
||||||
|
@ -314,7 +314,7 @@ _EOF
|
||||||
for f in ${triggers}; do
|
for f in ${triggers}; do
|
||||||
targets=$($XBPS_TRIGGERSDIR/$f targets)
|
targets=$($XBPS_TRIGGERSDIR/$f targets)
|
||||||
for j in ${targets}; do
|
for j in ${targets}; do
|
||||||
if ! $(echo $j|grep -q post-${action}); then
|
if ! [[ $j =~ post-${action} ]]; then
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
printf "\t\${TRIGGERSDIR}/$f run $j \${PKGNAME} \${VERSION} \${UPDATE} \${CONF_FILE}\n" >> $tmpf
|
printf "\t\${TRIGGERSDIR}/$f run $j \${PKGNAME} \${VERSION} \${UPDATE} \${CONF_FILE}\n" >> $tmpf
|
||||||
|
|
Loading…
Reference in New Issue