diff --git a/.local/bin/emerge-logs b/.local/bin/emerge-logs new file mode 100755 index 0000000..0f3575b --- /dev/null +++ b/.local/bin/emerge-logs @@ -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]}