From 28707860e9ab5f5b380996b5a0b1f81b5e26d172 Mon Sep 17 00:00:00 2001 From: Bruno Fontes Date: Sun, 1 Jul 2018 18:10:21 -0300 Subject: [PATCH] Addin Egnyte script and updating Pacman to cleanup --- Egnyte/pathToEgnyte.sh | 3 +++ Pacman/updateRepositories.sh | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100755 Egnyte/pathToEgnyte.sh diff --git a/Egnyte/pathToEgnyte.sh b/Egnyte/pathToEgnyte.sh new file mode 100755 index 0000000..5cc74d2 --- /dev/null +++ b/Egnyte/pathToEgnyte.sh @@ -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" diff --git a/Pacman/updateRepositories.sh b/Pacman/updateRepositories.sh index 86c789b..05b040a 100644 --- a/Pacman/updateRepositories.sh +++ b/Pacman/updateRepositories.sh @@ -12,7 +12,7 @@ check_pkgversion() { echo echo Updating with Pacman... echo -echo "$sudoPass" | sudo -S pacman -Syu --color always +echo "$sudoPass" | sudo -S pacman -Syu --color always && sudo pacman-mirrors -g echo aurpkgs=$(pacman -Qm | awk '{print $1}') for line in $aurpkgs @@ -22,5 +22,5 @@ do source ~/aur.sh "$line" "$sudoPass" fi 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!"