summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2018-08-09 07:58:37 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2018-08-09 07:58:37 +0200
commitc26071d2b45196ce26cad143b7ac75e7ce605a14 (patch)
tree1d9897849f58ddbb9f30dc145e7cb362119ade64
parent5b5562e117360b23624423b3f08a58cb18957482 (diff)
downloadbin-c26071d2b45196ce26cad143b7ac75e7ce605a14.zip
bin-c26071d2b45196ce26cad143b7ac75e7ce605a14.tar.gz
update : clean pacman and aurman cached before updateing
-rwxr-xr-xupdate3
1 files changed, 2 insertions, 1 deletions
diff --git a/update b/update
index a48393c..3643f0f 100755
--- a/update
+++ b/update
@@ -37,9 +37,10 @@ function update_gem() {
}
function update_pkgs() {
- sudo_run "pacman -Syu" || return
sudo_run "pacman -Scc --noconfirm"
+ sudo_run "pacman -Syu" || return
sudo_run "rm /var/cache/pacman/pkg/*"
+ run "aurman -Sc --noconfirm"
run "aurman -Syu"
}