summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2015-08-03 18:31:41 +0000
committerMichael Sterrett <mr_bones_@gentoo.org>2015-08-03 18:31:41 +0000
commited18dfd843c83bc021e0ecbaebf2b5d99a558ebd (patch)
tree74b28904e08bb4095923f44a9a8203bb48bdb6ea /eclass/python-utils-r1.eclass
parentBackport fix for networkd crash. (diff)
downloadgentoo-2-ed18dfd843c83bc021e0ecbaebf2b5d99a558ebd.tar.gz
gentoo-2-ed18dfd843c83bc021e0ecbaebf2b5d99a558ebd.tar.bz2
gentoo-2-ed18dfd843c83bc021e0ecbaebf2b5d99a558ebd.zip
Add quotes to support reading from files with spaces in the filename.
Diffstat (limited to 'eclass/python-utils-r1.eclass')
-rw-r--r--eclass/python-utils-r1.eclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/eclass/python-utils-r1.eclass b/eclass/python-utils-r1.eclass
index 000c27f1a249..cf8838071e83 100644
--- a/eclass/python-utils-r1.eclass
+++ b/eclass/python-utils-r1.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/python-utils-r1.eclass,v 1.88 2015/07/27 16:35:19 mgorny Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/python-utils-r1.eclass,v 1.89 2015/08/03 18:31:41 mr_bones_ Exp $
# @ECLASS: python-utils-r1
# @MAINTAINER:
@@ -1005,7 +1005,7 @@ python_fix_shebang() {
local shebang i
local error= from=
- IFS= read -r shebang <${f}
+ IFS= read -r shebang <"${f}"
# First, check if it's shebang at all...
if [[ ${shebang} == '#!'* ]]; then