Add log file

This commit is contained in:
OBJNULL 2026-05-09 22:05:37 -05:00
parent bc13b134ba
commit 8345a9265b

View file

@ -53,7 +53,7 @@ function displayYesNo {
} }
function displayCmd { function displayCmd {
echo -e "- Running $(styleColor "green")$2$(styleColorRst)..." echo -e "- Running $(styleColor "green")$2$(styleColorRst)..."
$1 > /dev/null 2>&1 $1 > /tmp/objnull-dotfile-installer.log 2>&1
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
echo -e "\t---$(styleColor "red")Previous command failed!$(styleColorRst)---" echo -e "\t---$(styleColor "red")Previous command failed!$(styleColorRst)---"
@ -80,6 +80,9 @@ function installPak {
clear clear
displayTitle "OBJNULL Dotfile Installer" displayTitle "OBJNULL Dotfile Installer"
echo -e "--- $(styleColor "yellow")NOTE$(styleColorRst) ---"
echo -e "Please note all logfiles are located in $(styleColor "yellow")\`/tmp/objnull-dotfile-installer.log\`$(styleColorRst)"
echo ""
echo -e "This script is designed to quickly install any required components" echo -e "This script is designed to quickly install any required components"
echo -e "so that your system is up and running quick with a speedy shell.\n" echo -e "so that your system is up and running quick with a speedy shell.\n"