common/environment/setup/install.sh: quote filename in vinstall
Fixes #5011
This commit is contained in:
parent
0dfdd7c1dd
commit
f82da0a8f7
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue