add output wrapper and minor fixes
This commit is contained in:
parent
cfed89a7a3
commit
54bc958ef4
1 changed files with 29 additions and 0 deletions
29
apstget/files/apstget-wrapper
Normal file
29
apstget/files/apstget-wrapper
Normal file
|
@ -0,0 +1,29 @@
|
|||
#!/bin/sh
|
||||
|
||||
CONFIGFILE=_etc_/apstget.conf
|
||||
|
||||
if [ -e "${CONFIGFILE}" ]; then
|
||||
. ${CONFIGFILE}
|
||||
fi
|
||||
|
||||
if [ "${QUITE}" = "" ]; then
|
||||
QUITE="0"
|
||||
fi
|
||||
|
||||
env QUITE=${QUITE} \
|
||||
awk -W interactive '
|
||||
{
|
||||
if ( ENVIRON["QUITE"] < "1" ) {
|
||||
print $0;
|
||||
} else
|
||||
if ( ENVIRON["QUITE"] == "1" ) {
|
||||
if (/==>/ || /=> Attempting/ || /ETA/) print $0;
|
||||
} else
|
||||
if ( ENVIRON["QUITE"] == "2" ) {
|
||||
if ( /=> Attempting/ ||
|
||||
/==> Configuring/ ||
|
||||
/==> Building/ ||
|
||||
/==> Installing/ ||
|
||||
/ETA/) print $0;
|
||||
}
|
||||
}'
|
Loading…
Reference in a new issue