Bash executes lines

This commit is contained in:
OBJNULL 2026-05-10 01:39:08 -05:00
parent 9e6f9c58cf
commit a7f65763f4

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 >> /tmp/objnull-dotfile-installer.log bash -c "$1" >> /tmp/objnull-dotfile-installer.log
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)---"