From: Michal Sojka Date: Tue, 22 Jul 2014 07:21:26 +0000 (+0200) Subject: Set $builddir to invocation dir if it is not specified by other means X-Git-Tag: 20140723~7 X-Git-Url: https://rtime.felk.cvut.cz/gitweb/novaboot.git/commitdiff_plain/78152d31f3a1aff3c862dcd8eb4e88cfa2b295a4 Set $builddir to invocation dir if it is not specified by other means This fixes undefined variable in --tftp handling when novaboot it run as novabot ... -- /dev/null --- diff --git a/novaboot b/novaboot index 4119409..0a88f69 100755 --- a/novaboot +++ b/novaboot @@ -740,6 +740,8 @@ $builddir ||= dirname(File::Spec->rel2abs( ${$scripts[0]}{filename})) if scalar if (defined $builddir) { chdir($builddir) or die "Can't change directory to $builddir: $!"; print "novaboot: Entering directory `$builddir'\n"; +} else { + $builddir = $invocation_dir; } ## File generation phase