moved everything to ~/aur/
This commit is contained in:
parent
735527e6d2
commit
86d8ceee8e
1 changed files with 15 additions and 12 deletions
27
bin/aursync
27
bin/aursync
|
@ -1,13 +1,16 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
cd ~/custom-repo/x64_86
|
|
||||||
repo-add -q custom.db.tar.gz *.pkg.*
|
if [ -d "$HOME/aur/" ]; then
|
||||||
if [[ "$#" -eq 1 ]]
|
cd "$HOME/aur/custom-repo/x64_86" || exit
|
||||||
then
|
repo-add -q custom.db.tar.gz ./*.pkg.*
|
||||||
aur sync --repo custom --root "$(pwd)" --no-view "$1" > /dev/null
|
if [[ "$#" -eq 1 ]]; then
|
||||||
fi
|
aur sync --repo custom --root "$(pwd)" --no-view -u "$1" >/dev/null
|
||||||
aur sync --repo custom --root "$(pwd)" --no-view -u > /dev/null
|
else
|
||||||
mv custom.db.tar.gz custom.db
|
aur sync --repo custom --root "$(pwd)" --no-view -u >/dev/null
|
||||||
mv custom.files.tar.gz custom.files
|
fi
|
||||||
git add .
|
mv custom.db.tar.gz custom.db
|
||||||
git commit -a -q -m "$(date +"%F %T")"
|
mv custom.files.tar.gz custom.files
|
||||||
git push -q
|
git add .
|
||||||
|
git commit -a -q -m "$(date +"%F %T")"
|
||||||
|
git push -q
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in a new issue