[aurup] store and revert current path

This commit is contained in:
Marcel Kapfer 2020-09-19 23:21:23 +02:00
parent 13be70851a
commit df3c74765f
Signed by: mmk2410
GPG Key ID: CADE6F0C09F21B09
1 changed files with 3 additions and 0 deletions

View File

@ -7,6 +7,8 @@
# License: GPLv3 (https://www.gnu.org/licenses/gpl-3.0.en.html)
for pkg in (auracle outdated | cut -d' ' -f1)
set -l pwd $PWG
cd ~/aur/
echo "Updating $pkg"
cd $pkg
@ -27,3 +29,4 @@ for pkg in (auracle outdated | cut -d' ' -f1)
makepkg -Ccsir
cd ..
end
cd $pwd