diff options
author | Benda Xu <heroxbd@gentoo.org> | 2023-08-17 13:50:55 +0800 |
---|---|---|
committer | Benda Xu <heroxbd@gentoo.org> | 2023-08-17 13:50:55 +0800 |
commit | 27c24849cb9421cb04f42c0f779c1d7b0a8c7290 (patch) | |
tree | c4016e45ddcb1ff08c8e464730651396bfbcf394 | |
parent | test-keyword.sh: test if there is emerge. (diff) | |
download | heroxbd-27c24849cb9421cb04f42c0f779c1d7b0a8c7290.tar.gz heroxbd-27c24849cb9421cb04f42c0f779c1d7b0a8c7290.tar.bz2 heroxbd-27c24849cb9421cb04f42c0f779c1d7b0a8c7290.zip |
test-keyword.sh: also redirect standard error.
Suggested-by: Jiajie Chen <jiegec@qq.com>
Signed-off-by: Benda Xu <heroxbd@gentoo.org>
-rwxr-xr-x | test-keyword.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test-keyword.sh b/test-keyword.sh index 86cf65a..28c4cc3 100755 --- a/test-keyword.sh +++ b/test-keyword.sh @@ -12,7 +12,7 @@ sed "/### START keyword for $1/../### END keyword for $1/d" -i ${ack} echo "### START keyword for $1" >> ${ack} while ! emerge -pv $1; do - emerge -pv $1 | sed -r -n '/masked by: missing keyword/{s,^- (.*/.*)-[[:digit:]].*,\1 **,p;q}' | tee -a ${ack} + emerge -pv $1 |& sed -r -n '/masked by: missing keyword/{s,^- (.*/.*)-[[:digit:]].*,\1 **,p;q}' | tee -a ${ack} done echo "### END keyword for $1" >> ${ack} |