Skip to content

Commit

Permalink
Add optional package db syncronization on dependencies installation
Browse files Browse the repository at this point in the history
  • Loading branch information
sgtpep committed Dec 17, 2014
1 parent 105005e commit 9fab2c1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ install-packages() {
[[ $REPLY =~ ^[Yy]*$ ]] && sudo apt-get install -y ${packages[@]} || exit 1
echo
elif which pacman &>/dev/null; then
[[ `ls /var/lib/pacman/sync` ]] || sudo pacman -Sy
sudo pacman -S --needed ${packages[@]}
echo
else
Expand Down

0 comments on commit 9fab2c1

Please sign in to comment.