summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorMichał Górny <gentoo@mgorny.alt.pl>2010-04-17 07:53:17 +0000
committerZac Medico <zmedico@gentoo.org>2010-04-24 00:56:20 -0700
commitc83340553c020146d3081cc86bb51966e036a6d4 (patch)
tree726eb6ab2e7a7768e0e2c4e757c61e8773cb7650 /bin
parentPass in missing vartree parameter to doebuild(). Thanks to Arfrever for (diff)
downloadportage-idfetch-c83340553c020146d3081cc86bb51966e036a6d4.tar.gz
portage-idfetch-c83340553c020146d3081cc86bb51966e036a6d4.tar.bz2
portage-idfetch-c83340553c020146d3081cc86bb51966e036a6d4.zip
Quote path for die snippet display.
Added missing quoting around the path passed to sed when displaying ebuild snippet on die(). This should fix the issue where they weren't displayed due to the occurence of special characters in the path.
Diffstat (limited to 'bin')
-rw-r--r--bin/isolated-functions.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/isolated-functions.sh b/bin/isolated-functions.sh
index 89e5e4b8..5401e253 100644
--- a/bin/isolated-functions.sh
+++ b/bin/isolated-functions.sh
@@ -123,7 +123,7 @@ die() {
# erase the line and set the hold buffer to it (thus
# erasing the hold buffer in the process)
/[^\]$/{s:^.*$::;h}' \
- ${BASH_SOURCE[1]} \
+ "${BASH_SOURCE[1]}" \
| sed -e '1d' -e 's:^:RETAIN-LEADING-SPACE:' \
| while read -r n ; do eerror " ${n#RETAIN-LEADING-SPACE}" ; done
eerror