Addin Egnyte script and updating Pacman to cleanup

This commit is contained in:
Bruno Fontes 2018-07-01 18:10:21 -03:00
parent 0ffbcd5e68
commit 28707860e9
2 changed files with 5 additions and 2 deletions

3
Egnyte/pathToEgnyte.sh Executable file
View File

@ -0,0 +1,3 @@
cpboard=$(xsel -b)
cpboard=$(echo "$cpboard" | sed -e 's/\\/\//g' -e 's/Z:\//https:\/\/oxo.egnyte.com\/app\/index.do#storage\/files\/1\//')
chromium "$cpboard"

View File

@ -12,7 +12,7 @@ check_pkgversion() {
echo echo
echo Updating with Pacman... echo Updating with Pacman...
echo echo
echo "$sudoPass" | sudo -S pacman -Syu --color always echo "$sudoPass" | sudo -S pacman -Syu --color always && sudo pacman-mirrors -g
echo echo
aurpkgs=$(pacman -Qm | awk '{print $1}') aurpkgs=$(pacman -Qm | awk '{print $1}')
for line in $aurpkgs for line in $aurpkgs
@ -22,5 +22,5 @@ do
source ~/aur.sh "$line" "$sudoPass" source ~/aur.sh "$line" "$sudoPass"
fi fi
done done
echo "$sudoPass" | yes | (sudo -S pacman -Sc --color always) echo "$sudoPass" | yes | (sudo -S pacman -Rns $(pacman -Qtdq) --color always)
notify-send "Update script has finished!" notify-send "Update script has finished!"