forked from mirrored-repos/manjaro-tools
[util-pkgtree] some cosmetics
This commit is contained in:
parent
1490dfaef7
commit
690ae7ce7c
1 changed files with 7 additions and 7 deletions
|
@ -15,14 +15,14 @@ sync_tree(){
|
||||||
if [[ -d packages-$repo ]];then
|
if [[ -d packages-$repo ]];then
|
||||||
cd packages-$repo
|
cd packages-$repo
|
||||||
if [ "$(git log --pretty=%H ...refs/heads/master^)" = "$(git ls-remote origin -h refs/heads/master | cut -f1)" ]; then
|
if [ "$(git log --pretty=%H ...refs/heads/master^)" = "$(git ls-remote origin -h refs/heads/master | cut -f1)" ]; then
|
||||||
msg "$repo is up to date"
|
msg "[$repo] is up to date"
|
||||||
else
|
else
|
||||||
msg "Syncing $repo ..."
|
msg "Syncing [$repo] ..."
|
||||||
git pull origin master
|
git pull origin master
|
||||||
fi
|
fi
|
||||||
cd ..
|
cd ..
|
||||||
else
|
else
|
||||||
msg "Cloning $repo ..."
|
msg "Cloning [$repo] ..."
|
||||||
git clone ${host_tree}/packages-$repo.git
|
git clone ${host_tree}/packages-$repo.git
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
@ -34,9 +34,9 @@ sync_tree_abs(){
|
||||||
if [[ -d packages ]];then
|
if [[ -d packages ]];then
|
||||||
cd packages
|
cd packages
|
||||||
if [ "$(git log --pretty=%H ...refs/heads/master^)" = "$(git ls-remote origin -h refs/heads/master | cut -f1)" ]; then
|
if [ "$(git log --pretty=%H ...refs/heads/master^)" = "$(git ls-remote origin -h refs/heads/master | cut -f1)" ]; then
|
||||||
msg "abs is up to date"
|
msg "[abs] is up to date"
|
||||||
else
|
else
|
||||||
msg "Syncing abs ..."
|
msg "Syncing [abs] ..."
|
||||||
git pull origin master
|
git pull origin master
|
||||||
fi
|
fi
|
||||||
cd ..
|
cd ..
|
||||||
|
|
Loading…
Reference in a new issue