Added Logs-emerge

Signed-off-by: Marcin Woźniak <y0rune@aol.com>
This commit is contained in:
2020-09-21 14:40:52 +02:00
parent c4e543e710
commit cf075a3fdd
3 changed files with 37 additions and 4 deletions

13
.local/bin/Logs-emerge Executable file
View File

@ -0,0 +1,13 @@
#!/bin/bash
LOGS=( $(sudo find /var/tmp/portage/ -mindepth 3 -name "build.log") )
LEN=${#LOGS[@]}
for (( i=0; i<$LEN; i++ ));
do
echo "$i - ${LOGS[$i]}"
done
echo
read -p 'Select number to show logs: ' NUMBER
sudo tail -f ${LOGS[$NUMBER]} | ccze -A