Skip to content

Instantly share code, notes, and snippets.

@gustavomedeiross
Last active November 20, 2020 17:14
Show Gist options
  • Save gustavomedeiross/b77bd9799c2ea66ba8e3ec3a96465866 to your computer and use it in GitHub Desktop.
Save gustavomedeiross/b77bd9799c2ea66ba8e3ec3a96465866 to your computer and use it in GitHub Desktop.
scriptzinho-do-henke.sh
if [[ ! -e /tmp/$(date +"%Y%m%d").sem ]]
then
# Do your one-time stuff
if (dialog --title "update packages" --yesno "Let's update our pacman packages?(yay command)" 6 30)
then
touch /tmp/$(date +"%Y%m%d").sem
clear
yay
else
touch /tmp/$(date +"%Y%m%d").sem
clear
fi
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment