Merge pull request #5013 from ebfe/vinstall

common/environment/setup/install.sh: quote filename in vinstall
This commit is contained in:
Toyam Cox 2016-10-20 20:27:15 -04:00 committed by GitHub
commit 0f8895e5b9
1 changed files with 3 additions and 3 deletions

View File

@ -135,7 +135,7 @@ _vinstall() {
return 1
fi
if [ ! -r "$file" ]; then
if [ ! -r "${file}" ]; then
msg_red "$pkgver: vinstall: cannot find '$file'...\n"
return 1
fi
@ -147,9 +147,9 @@ _vinstall() {
fi
if [ -z "$targetfile" ]; then
install -Dm${mode} ${file} "${_destdir}/${targetdir}/${file##*/}"
install -Dm${mode} "${file}" "${_destdir}/${targetdir}/${file##*/}"
else
install -Dm${mode} ${file} "${_destdir}/${targetdir}/${targetfile##*/}"
install -Dm${mode} "${file}" "${_destdir}/${targetdir}/${targetfile##*/}"
fi
}