diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-01-14 15:42:00 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-01-14 15:42:00 +0100 |
commit | a3e51e2706f37f4a7a3a3276d96fd4bcad7f5f7c (patch) | |
tree | 111a1e11f24b2717d74f6fad733f11ff34936de5 /g | |
parent | 75d2e7e5d58b42d30a2d1b054547a5852dabd2fe (diff) |
Some quoting fixes
Change-Id: I3b375c67ed84f29360cbc9933f4a1e5c7cbe3277
Diffstat (limited to 'g')
-rwxr-xr-x | g | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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?}" |