From f82da0a8f705a6f7db7a9a6b98de0d6063fee321 Mon Sep 17 00:00:00 2001 From: Michael Gehring Date: Fri, 21 Oct 2016 01:45:26 +0200 Subject: [PATCH] common/environment/setup/install.sh: quote filename in vinstall Fixes #5011 --- common/environment/setup/install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/environment/setup/install.sh b/common/environment/setup/install.sh index b56e17a437c..8ceaefd1a24 100644 --- a/common/environment/setup/install.sh +++ b/common/environment/setup/install.sh @@ -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 }