Use already defined variable

This commit is contained in:
Renato Botelho 2018-05-25 08:58:35 -03:00
parent 7c41a378ee
commit 21c6fa05bc

View File

@ -167,7 +167,7 @@ fi
# Add license information
if [ -d "${template_licensedir}" ]; then
portname=$(sed '/^name: /!d; s,^[^"]*",,; s,",,' ${metadir}/+MANIFEST)
portname=$(sed '/^name: /!d; s,^[^"]*",,; s,",,' ${manifest})
licenses_dir="/usr/local/share/licenses/${portname}-${version}"
mkdir -p ${root}${licenses_dir}