diff options
author | dancer <dancer> | 2006-06-10 15:09:52 +0000 |
---|---|---|
committer | dancer <dancer> | 2006-06-10 15:09:52 +0000 |
commit | 84230c04e0b5e43f3b84307e83dd87b2ee346a98 (patch) | |
tree | b6bb8ed115a4d23d1d78a96b14e52ab345d15037 /pbuilder-buildpackage | |
parent | 1462ca03eefc6dd37065ee70545303aefa84b308 (diff) | |
download | pbuilder-84230c04e0b5e43f3b84307e83dd87b2ee346a98.tar pbuilder-84230c04e0b5e43f3b84307e83dd87b2ee346a98.tar.gz |
do error checking for buildresult.
Diffstat (limited to 'pbuilder-buildpackage')
-rwxr-xr-x | pbuilder-buildpackage | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/pbuilder-buildpackage b/pbuilder-buildpackage index 2b696a3..11b0034 100755 --- a/pbuilder-buildpackage +++ b/pbuilder-buildpackage @@ -57,8 +57,15 @@ trap umountproc_cleanbuildplace exit loadhooks if [ ! -d "${BUILDRESULT}" ]; then - echo " -> created buildresult dir: ${BUILDRESULT}" - mkdir -p "${BUILDRESULT}" + if [ -n "${BUILDRESULT}" ] ; then + mkdir -p "${BUILDRESULT}" + fi + if [ -d "${BUILDRESULT}" ]; then + echo " -> created buildresult dir: ${BUILDRESULT}" + else + echo "E: failed creating buildresult dir: ${BUILDRESULT}" + exit 1 + fi fi if [ -z "${PBUILDER_BUILD_LOGFILE}" ]; then |