Changeset - 892b6cc75cf1
[Not reviewed]
default
0 3 0
Dennis Fink - 7 years ago 2013-03-05 08:27:31
the_metalgamer@hackerspace.lu
updated Exit codes and documentation
3 files changed with 13 insertions and 4 deletions:
0 comments (0 inline, 0 general)
man/man8/yaah.8.gz
Show inline comments
 
binary diff not shown
yaah
Show inline comments
...
 
@@ -198,7 +198,7 @@ query_online_version () {
 

	
 
        if [[ $? -ne 0 ]]; then
 
            error "Packages infos could not be loaded!"
 
            return 1
 
            return 2
 
        fi
 

	
 
        msg_verbose2 "Getting numbers of objects in json array!"
...
 
@@ -257,7 +257,7 @@ query_local_version () {
 
        query_online_version sorted_packages[@]
 
    else
 
        error "Packages could not be loaded!"
 
        return 1
 
        return 2
 
    fi
 

	
 
}
...
 
@@ -281,7 +281,7 @@ extract_and_remove () {
 
            rm $1
 
        else
 
            error "'$1' is not a file"
 
            return 1
 
            return 2
 
        fi
 
    else
 
        error "Not enough parameters supplied"
...
 
@@ -312,7 +312,7 @@ download () {
 
                extract_and_remove "$downloaddir/$filename"
 
            else
 
                error "'$1' could not be found!"
 
                return 1
 
                return 2
 
            fi
 
            shift
 
        done
yaah.rst
Show inline comments
...
 
@@ -61,6 +61,15 @@ yaah -c -vv
 
yaah -v task-git
 
    Be more verbose at downloading the package task-git.
 

	
 
EXIT CODES
 
==========
 

	
 
0   Nothing went wrong.
 

	
 
1   Error in program, like an unknown option.
 

	
 
2   Error in external program like curl. Maybe the package requested does not exist or you're network connection does not work.
 

	
 
SEE ALSO
 
========
 

	
0 comments (0 inline, 0 general)