aboutsummaryrefslogtreecommitdiff
path: root/pbuilder-user-mode-linux
diff options
context:
space:
mode:
Diffstat (limited to 'pbuilder-user-mode-linux')
-rwxr-xr-xpbuilder-user-mode-linux14
1 files changed, 12 insertions, 2 deletions
diff --git a/pbuilder-user-mode-linux b/pbuilder-user-mode-linux
index 9e33e51..1bfc624 100755
--- a/pbuilder-user-mode-linux
+++ b/pbuilder-user-mode-linux
@@ -211,10 +211,20 @@ while [ -n "$1" ] ; do
shift; shift;;
--buildresult)
# ignore buildresult
- UML_BUILDRESULT=$(readlink -f "$2")
+ if [ -d "$2" ]; then
+ UML_BUILDRESULT=$(readlink -f "$2")
+ else
+ echo "E: Directory $d does not exist" >&2
+ exit 1
+ fi
shift; shift;;
--buildplace)
- BUILDPLACE=$(readlink -f "$2")
+ if [ -d "$2" ]; then
+ BUILDPLACE=$(readlink -f "$2")
+ else
+ echo "E: Directory $d does not exist" >&2
+ exit 1
+ fi
shift; shift;;
--logfile)
exec > "$2";