Some quoting fixes

Change-Id: I3b375c67ed84f29360cbc9933f4a1e5c7cbe3277
This commit is contained in:
Stephan Bergmann 2015-01-14 15:42:00 +01:00
parent 75d2e7e5d5
commit a3e51e2706

12
g
View file

@ -37,7 +37,7 @@ local hook_name
if [ -d ${repo?}/.git ] ; then
# use core's hook by default
for hook_name in $(ls -1 ${COREDIR?}/.git-hooks) ; do
for hook_name in $(ls -1 "${COREDIR?}/.git-hooks") ; do
hook="${repo?}/.git/hooks/${hook_name?}"
if [ ! -e "${hook?}" -o -L "${hook?}" ] ; then
rm -f "${hook?}"
@ -45,7 +45,7 @@ local hook_name
fi
done
# override if need be by the submodules' own hooks
for hook_name in $(ls -1 ${COREDIR?}/${repo?}/.git-hooks 2>/dev/null) ; do
for hook_name in $(ls -1 "${COREDIR?}/${repo?}/.git-hooks" 2>/dev/null) ; do
hook="${repo?}/.git/hooks/${hook_name?}"
if [ ! -e "${hook?}" -o -L "${hook?}" ] ; then
rm -f "${hook?}"
@ -53,7 +53,7 @@ local hook_name
fi
done
elif [ -d .git/modules/${repo}/hooks ] ; then
for hook_name in $(ls -1 ${COREDIR?}/.git-hooks) ; do
for hook_name in $(ls -1 "${COREDIR?}/.git-hooks") ; do
hook=".git/modules/${repo?}/hooks/${hook_name?}"
if [ ! -e "${hook?}" -o -L "${hook?}" ] ; then
rm -f "${hook?}"
@ -61,7 +61,7 @@ local hook_name
fi
done
# override if need be by the submodules' own hooks
for hook_name in $(ls -1 ${COREDIR?}/${repo?}/.git-hooks 2>/dev/null) ; do
for hook_name in $(ls -1 "${COREDIR?}/${repo?}/.git-hooks" 2>/dev/null) ; do
hook=".git/modules/${repo?}/hooks/${hook_name?}"
if [ ! -e "${hook?}" -o -L "${hook?}" ] ; then
rm -f "${hook?}"
@ -78,8 +78,8 @@ local repo
local hook_name
local hook
pushd ${COREDIR?} > /dev/null
for hook_name in $(ls -1 ${COREDIR?}/.git-hooks) ; do
pushd "${COREDIR?}" > /dev/null
for hook_name in $(ls -1 "${COREDIR?}/.git-hooks") ; do
hook=".git/hooks/${hook_name?}"
if [ ! -e "${hook?}" -o -L "${hook?}" ] ; then
rm -f "${hook?}"