Skip to content

Commit

Permalink
add -y to getupdates
Browse files Browse the repository at this point in the history
  • Loading branch information
slingamn committed Dec 14, 2014
1 parent f85f8b3 commit abece80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions home/bin/getupdates
Expand Up @@ -8,13 +8,13 @@ function command_exists {

if command_exists yum ;
then
sudo yum update --changelog
sudo yum update -y --changelog
exit $?
fi

if command_exists apt-get ;
then
sudo apt-get update && sudo apt-get dist-upgrade
sudo apt-get update && sudo apt-get dist-upgrade -y
exit $?
fi

Expand Down

0 comments on commit abece80

Please sign in to comment.