Changeset - 4dcc4a099227
[Not reviewed]
default
0 1 0
Dennis Fink (metalgamer) - 5 years ago 2015-12-14 21:55:42
dennis.fink@c3l.lu
Using git pull if directory already exists
1 file changed with 6 insertions and 1 deletions:
yaah
6
1
0 comments (0 inline, 0 general)
yaah
Show inline comments
...
 
@@ -390,8 +390,13 @@ download () {
 
            curl -o "$downloaddir/$filename" "${AURURL}cgit/aur.git/snapshot/$filename"
 
        else
 
            local gitrepo="${1}.git"
 
            if [[ -d "$downloaddir/$1" ]]; then
 
                msg "Pulling '$1'"
 
                git pull "$downloaddir/$1"
 
            else
 
            msg "Cloning '$1' into '$downloaddir'"
 
            git clone --quiet "${AURURL}/$gitrepo"
 
                git clone --quiet "${AURURL}/$gitrepo" "$downloaddir/$1"
 
            fi
 
        fi
 

	
 
        if [[ $? -eq 0 ]]; then
0 comments (0 inline, 0 general)