#!/bin/bash cmd='pacman -Sy' cmd2='abs' if $cmd && $cmd2 then cat /var/log/pacman.log else echo "Operation cannot be successeful.The script si disabled!" exit 1 fi