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