Fixed problem I introduced when no template was specified

git-svn-id: file:///home/svn/framework3/trunk@12730 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Carlos Perez 2011-05-26 10:48:20 +00:00
parent 609ae839a1
commit 016712baa5
1 changed files with 5 additions and 2 deletions

View File

@ -340,8 +340,11 @@ if opts[:encode]
end
end
exeopts = { :inject => opts[:inject], :template_path => File.dirname(opts[:template]), :template => File.basename(opts[:template]) }
if opts[:template]
path = File.dirname(opts[:template])
altexe = File.basename(opts[:template])
end
exeopts = { :inject => opts[:inject], :template_path => path, :template => altexe }
if opts[:nopsled]
puts opts[:arch].class