From 071d6daf5c798e89887a84a17fb3b64824fdbc6f Mon Sep 17 00:00:00 2001 From: Tomas Chvatal Date: Mon, 23 Apr 2012 14:39:39 +0200 Subject: Fix undefined destdir if the directory was not existing prior the run. --- solenv/bin/modules/installer/parameter.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'solenv') diff --git a/solenv/bin/modules/installer/parameter.pm b/solenv/bin/modules/installer/parameter.pm index 6d99aaa1a953..198a381fefad 100644 --- a/solenv/bin/modules/installer/parameter.pm +++ b/solenv/bin/modules/installer/parameter.pm @@ -152,7 +152,10 @@ sub getparameter elsif ($param eq "-destdir") # new parameter for simple installer { $installer::globals::rootpath ne "" && die "must set destdir before -i or -simple"; - $installer::globals::destdir = Cwd::realpath( shift @ARGV ); + + my $path = shift(@ARGV); + mkdir $path; + $installer::globals::destdir = Cwd::realpath($path); } elsif ($param eq "-simple") # new parameter for simple installer { -- cgit