diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2017-05-25 14:39:05 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2017-05-25 17:28:30 -0400 |
commit | 6092b9d93df1c3d5170a2b6aa0275aebef18bd37 (patch) | |
tree | 55627e026fa7f538f8085f0fb8ed1fffcce4fcbc /src/abslibre-tools/diff-unfree | |
parent | aedbebb0ea3c7b40dda987b43ff21475ef67f423 (diff) |
start moving things to use the libremessages exit codes
Diffstat (limited to 'src/abslibre-tools/diff-unfree')
-rwxr-xr-x | src/abslibre-tools/diff-unfree | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/abslibre-tools/diff-unfree b/src/abslibre-tools/diff-unfree index 860c985..29025e2 100755 --- a/src/abslibre-tools/diff-unfree +++ b/src/abslibre-tools/diff-unfree @@ -37,7 +37,7 @@ usage() { main() { if [[ "$1" == "--help" ]]; then usage - return 0 + return $EXIT_SUCCESS fi load_conf libretools.conf DIFFPROG || exit @@ -56,14 +56,14 @@ main() { if [[ ! -r PKGBUILD ]]; then error "This is not a build dir." - return 1 + exit $EXIT_FAILURE fi tmp_dir="$(mktemp --tmpdir -d "${package}.XXXXXX")" if [[ ! -d "${tmp_dir}" ]]; then error "Can't create temp dir" - return 1 + exit $EXIT_FAILURE fi unfree_dir="${tmp_dir}/${svnrepo}/${package}/${trunk}" |