2021-03-27 10:41:18 +01:00
|
|
|
:<<'info'
|
|
|
|
shellnotes - l.sh
|
|
|
|
(C) Dimitris Marakomihelakis
|
|
|
|
Released under the "All rights reserved" category. See the RIGHTS.txt file
|
|
|
|
in /docs/github/ for its full text.
|
|
|
|
info
|
|
|
|
|
|
|
|
case $1 in -l|--logs )
|
|
|
|
clear
|
|
|
|
echo "Please select a logfile to open"
|
|
|
|
echo "-------------------------------"
|
|
|
|
echo
|
2021-04-18 12:06:44 +02:00
|
|
|
echo "1. disablement errors"
|
|
|
|
echo "2. enablement errors"
|
|
|
|
echo "3. installation errors"
|
|
|
|
echo "4. update errors"
|
|
|
|
echo "5. uninstallation errors"
|
|
|
|
echo "6. set-defaults errors"
|
2021-04-25 12:23:38 +02:00
|
|
|
echo
|
2021-03-27 10:41:18 +01:00
|
|
|
echo "For more info about which one to choose, read /docs/system/loggingsystem.txt"
|
|
|
|
echo
|
|
|
|
echo -n "[1,2,3,4,5]: " && read input
|
2021-04-25 12:23:38 +02:00
|
|
|
if [ -z $input ]; then
|
2021-03-27 10:41:18 +01:00
|
|
|
echo "Invalid input."
|
2021-04-25 12:23:38 +02:00
|
|
|
return 0
|
|
|
|
else
|
|
|
|
|
|
|
|
if [ $input = 1 ]; then
|
|
|
|
less ~/.shellnotes/logs/disfailed.txt
|
|
|
|
elif [ $input = 2 ]; then
|
|
|
|
less ~/.shellnotes/logs/enfailed.txt
|
|
|
|
elif [ $input = 3 ]; then
|
|
|
|
less ~/.shellnotes/logs/ifailed.txt
|
|
|
|
elif [ $input = 4 ]; then
|
|
|
|
less ~/.shellnotes/logs/ufailed.txt
|
|
|
|
elif [ $input = 5 ]; then
|
|
|
|
less ~/.shellnotes/logs/uninfailed.txt
|
|
|
|
elif [ $input = 6 ]; then
|
|
|
|
less ~/.shellnotes/logs/sdfailed.txt
|
|
|
|
else
|
|
|
|
echo "Invalid input."
|
|
|
|
fi
|
2021-03-27 10:41:18 +01:00
|
|
|
fi
|
|
|
|
esac
|