moved everything to ~/aur/
parent
735527e6d2
commit
86d8ceee8e
15
bin/aursync
15
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
|
||||||
|
else
|
||||||
aur sync --repo custom --root "$(pwd)" --no-view -u >/dev/null
|
aur sync --repo custom --root "$(pwd)" --no-view -u >/dev/null
|
||||||
|
fi
|
||||||
mv custom.db.tar.gz custom.db
|
mv custom.db.tar.gz custom.db
|
||||||
mv custom.files.tar.gz custom.files
|
mv custom.files.tar.gz custom.files
|
||||||
git add .
|
git add .
|
||||||
git commit -a -q -m "$(date +"%F %T")"
|
git commit -a -q -m "$(date +"%F %T")"
|
||||||
git push -q
|
git push -q
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in New Issue