Changeset - e69f920bdb5b
[Not reviewed]
default
0 1 0
Dennis Fink (metalgamer) - 5 years ago 2015-02-09 10:41:29
dennis.fink@c3l.lu
Fix bug. Now the curl command is really checked if it worked
1 file changed with 1 insertions and 2 deletions:
yaah
1
2
0 comments (0 inline, 0 general)
yaah
Show inline comments
...
 
@@ -419,10 +419,9 @@ download () {
 

	
 
            curl -o "$downloaddir/$filename" "${AURURL}packages/$start/$1/$filename"
 

	
 
            if [[ $? -eq 0 ]]; then
 
            msg_verbose2 "Setting trap to remove downloaded file"
 
            trap "rm -f '$downloaddir/$filename'" EXIT
 

	
 
            if [[ $? -eq 0 ]]; then
 
                extract_and_remove "$downloaddir/$filename"
 
            else
 
                error "'$1' could not be found!"
0 comments (0 inline, 0 general)