diff options
author | Mattia Rizzolo <mattia@mapreri.org> | 2015-11-13 11:24:29 +0000 |
---|---|---|
committer | Mattia Rizzolo <mattia@mapreri.org> | 2015-11-15 10:16:22 +0000 |
commit | e2420f46582fb7761d04ed86c2201dd79a857e51 (patch) | |
tree | 4c280b1df30beef695c9a84178aa405f07c21cce /pbuilder-checkparams | |
parent | fcee0334be27ea4ec4a5fdc3f940e015e60defe9 (diff) | |
download | pbuilder-e2420f46582fb7761d04ed86c2201dd79a857e51.tar pbuilder-e2420f46582fb7761d04ed86c2201dd79a857e51.tar.gz |
use log.e() instead of log()
Diffstat (limited to 'pbuilder-checkparams')
-rwxr-xr-x | pbuilder-checkparams | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/pbuilder-checkparams b/pbuilder-checkparams index 81878a6..51aafab 100755 --- a/pbuilder-checkparams +++ b/pbuilder-checkparams @@ -49,7 +49,7 @@ while [ -n "$1" ]; do touch "$2";; esac if [ ! -f "$2" ]; then - log "E: File $2 does not exist" + log.e "File $2 does not exist" exit 1 fi BASETGZ=$(readlink -f "$2"); @@ -57,7 +57,7 @@ while [ -n "$1" ]; do ;; --buildplace) if [ ! -d "$2" ] ; then - log "E: Directory $2 does not exist" + log.e "Directory $2 does not exist" exit 1 fi BUILDPLACE=$(readlink -f "$2"); @@ -116,7 +116,7 @@ while [ -n "$1" ]; do if [ -d "$2" ]; then APTCACHE=$(readlink -f "$2"); else - log "E: Directory $2 does not exist" + log.e "Directory $2 does not exist" exit 1 fi else @@ -134,7 +134,7 @@ while [ -n "$1" ]; do ;; --configfile) if [ ! -f "$2" ]; then - log "E: Config file $2 does not exist" + log.e "Config file $2 does not exist" exit 1 fi . "$2"; @@ -231,7 +231,7 @@ while [ -n "$1" ]; do ;; --inputfile) if [ ! -f "$2" ]; then - log "E: Input file $2 does not exist" + log.e "Input file $2 does not exist" exit 1 fi INPUTFILE[${#INPUTFILE[@]}]="$2"; @@ -275,7 +275,7 @@ while [ -n "$1" ]; do break; ;; --*) - log "E: Unknown option [$1] was specified " + log.e "Unknown option [$1] was specified " exit 1; ;; *) |