myhome/.local/bin/Logs-emerge
Marcin Woźniak 5e1d243c3e
Added
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
2020-09-27 00:39:03 +02:00

14 lines
247 B
Bash
Executable File

#!/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]}