Last active
November 20, 2020 17:14
-
-
Save gustavomedeiross/b77bd9799c2ea66ba8e3ec3a96465866 to your computer and use it in GitHub Desktop.
scriptzinho-do-henke.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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