Added emerge-logs
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
This commit is contained in:
parent
893e06659d
commit
7f449df84d
13
.local/bin/emerge-logs
Executable file
13
.local/bin/emerge-logs
Executable 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]}
|
Loading…
Reference in New Issue
Block a user