summaryrefslogtreecommitdiffstats
path: root/bin/dtf-gen
diff options
context:
space:
mode:
Diffstat (limited to 'bin/dtf-gen')
-rwxr-xr-xbin/dtf-gen5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/dtf-gen b/bin/dtf-gen
index 89c9ee0..e49ccc1 100755
--- a/bin/dtf-gen
+++ b/bin/dtf-gen
@@ -114,6 +114,11 @@ then
test -n "$2" && opt_distro="$2"
fi
+case $outputdir in
+ /*) : ;;
+ *) die "not absolute \$outputdir=$outputdir" ;;
+esac
+
test -d "$outputdir" && {
chmod u+w "$outputdir" -R
/bin/rm -rf "$outputdir"