diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2010-08-13 09:47:31 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2010-08-13 09:47:31 +0200 |
commit | a422060414670bb49d2422a38467b73ae01e7ecb (patch) | |
tree | f67c7216398ea6bf0aced46828235ca07fdbcf90 /cron-jobs/create-filelists | |
parent | e2c005b490df6762e23da3223944151c17d1de80 (diff) | |
download | dbscripts-a422060414670bb49d2422a38467b73ae01e7ecb.tar.gz dbscripts-a422060414670bb49d2422a38467b73ae01e7ecb.tar.xz |
Use common functions to print messages, warnings and errors
These functions are copied from makepkg
Diffstat (limited to 'cron-jobs/create-filelists')
-rwxr-xr-x | cron-jobs/create-filelists | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cron-jobs/create-filelists b/cron-jobs/create-filelists index 8c354fc..9249408 100755 --- a/cron-jobs/create-filelists +++ b/cron-jobs/create-filelists @@ -23,7 +23,7 @@ case "${DBEXT}" in *.gz) TAR_OPT="z" ;; *.bz2) TAR_OPT="j" ;; *.xz) TAR_OPT="J" ;; - *) echo "Unknown compression type for DBEXT=${DBEXT}" && exit 1 ;; + *) die "Unknown compression type for DBEXT=${DBEXT}" ;; esac FILESEXT="${DBEXT//db/files}" @@ -42,7 +42,7 @@ for repo in ${repos[@]}; do mkdir -p "${DBDIR}/${repodir}" bsdtar -xf "${targetdir}/${repodir}/${REPO_DB_FILE}" -C "${DBDIR}/${repodir}" else - echo "Fail! Does the repo $repo with arch $arch even exist?" + error "Fail! Does the repo $repo with arch $arch even exist?" continue fi |