summaryrefslogtreecommitdiff
path: root/eclass/git-2.eclass
diff options
context:
space:
mode:
authorTomas Chvatal <scarabeus@gentoo.org>2011-02-02 20:35:36 +0100
committerTomas Chvatal <scarabeus@gentoo.org>2011-02-02 20:35:36 +0100
commit3fd8dd2908a9e11ef4bd66571bb4f1e1345da1ed (patch)
tree1d281066c60c16dbf95aa3a986afc8c670f2ecfc /eclass/git-2.eclass
parent6341d133dc2f7e514d7abe3b0a44b3b2a6566f3a (diff)
downloadkde-3fd8dd2908a9e11ef4bd66571bb4f1e1345da1ed.tar.gz
kde-3fd8dd2908a9e11ef4bd66571bb4f1e1345da1ed.tar.bz2
kde-3fd8dd2908a9e11ef4bd66571bb4f1e1345da1ed.zip
Add missing quoting.
Diffstat (limited to 'eclass/git-2.eclass')
-rw-r--r--eclass/git-2.eclass16
1 files changed, 8 insertions, 8 deletions
diff --git a/eclass/git-2.eclass b/eclass/git-2.eclass
index 96c81c442bb..07322a9006a 100644
--- a/eclass/git-2.eclass
+++ b/eclass/git-2.eclass
@@ -205,14 +205,14 @@ git-2_prepare_storedir() {
# initial clone, we have to create master git storage directory and play
# nicely with sandbox
- if [[ ! -d ${ESCM_STORE_DIR} ]] ; then
+ if [[ ! -d "${ESCM_STORE_DIR}" ]] ; then
debug-print "${FUNCNAME}: Creating git main storage directory"
- addwrite ${PORTAGE_ACTUAL_DISTDIR-${DISTDIR}}
+ addwrite "${PORTAGE_ACTUAL_DISTDIR-${DISTDIR}}"
mkdir -p "${ESCM_STORE_DIR}" \
- || die "${FUNCNAME}: can't mkdir ${ESCM_STORE_DIR}."
+ || die "${FUNCNAME}: can't mkdir \"${ESCM_STORE_DIR}\"."
fi
- cd -P "${ESCM_STORE_DIR}" || die "${FUNCNAME}: can't chdir to ${ESCM_STORE_DIR}"
+ cd -P "${ESCM_STORE_DIR}" || die "${FUNCNAME}: can't chdir to \"${ESCM_STORE_DIR}\""
# allow writing into ESCM_STORE_DIR
addwrite "${ESCM_STORE_DIR}"
# calculate the proper store dir for data
@@ -223,11 +223,11 @@ git-2_prepare_storedir() {
# we can not jump between using and not using SUBMODULES so we need to
# refetch the source when needed
- if [[ -n ${EGIT_HAS_SUBMODULES} && -d ${EGIT_DIR} && ! -d ${EGIT_DIR}/.git ]]; then
+ if [[ -n ${EGIT_HAS_SUBMODULES} && -d "${EGIT_DIR}" && ! -d "${EGIT_DIR}"/.git ]]; then
debug-print "${FUNCNAME}: \"${clone_dir}\" was bare copy removing..."
rm -rf "${EGIT_DIR}"
fi
- if [[ -z ${EGIT_HAS_SUBMODULES} && -d ${EGIT_DIR} && -d ${EGIT_DIR}/.git ]]; then
+ if [[ -z ${EGIT_HAS_SUBMODULES} && -d "${EGIT_DIR}" && -d "${EGIT_DIR}"/.git ]]; then
debug-print "${FUNCNAME}: \"${clone_dir}\" was not copy removing..."
rm -rf "${EGIT_DIR}"
fi
@@ -271,8 +271,8 @@ git-2_fetch() {
einfo "GIT NEW clone -->"
einfo " repository: ${ESCM_REPO_URI}"
- debug-print "${ESCM_FETCH_CMD} ${extra_clone_opts} ${ESCM_OPTIONS} \"${ESCM_REPO_URI}\" ${EGIT_DIR}"
- ${ESCM_FETCH_CMD} ${extra_clone_opts} ${ESCM_OPTIONS} "${ESCM_REPO_URI}" ${EGIT_DIR} \
+ debug-print "${ESCM_FETCH_CMD} ${extra_clone_opts} ${ESCM_OPTIONS} \"${ESCM_REPO_URI}\" \"${EGIT_DIR}\""
+ ${ESCM_FETCH_CMD} ${extra_clone_opts} ${ESCM_OPTIONS} "${ESCM_REPO_URI}" "${EGIT_DIR}" \
|| die "${FUNCNAME}: can't fetch from ${ESCM_REPO_URI}."
pushd "${EGIT_DIR}" &> /dev/null