[asterisk-scf-commits] asterisk-scf/integration/gitall.git branch "master" updated.

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Tue Dec 7 16:38:54 CST 2010


branch "master" has been updated
       via  e546442d9e75937825ef8da052ffa333b25db81c (commit)
      from  c306bf36be7766103c03dbc81c91b1f7259fa26e (commit)

Summary of changes:
 gitall-asterisk-scf.sh |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)


- Log -----------------------------------------------------------------
commit e546442d9e75937825ef8da052ffa333b25db81c
Author: David M. Lee <dlee at digium.com>
Date:   Tue Dec 7 16:38:35 2010 -0600

    Handle paths with spaces in the name.
    
    Curse you, Windows!

diff --git a/gitall-asterisk-scf.sh b/gitall-asterisk-scf.sh
index e32aa96..1afc0d4 100755
--- a/gitall-asterisk-scf.sh
+++ b/gitall-asterisk-scf.sh
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-exe=$(basename $0)
+exe="$(basename $0)"
 
 function usage()
 {
@@ -161,7 +161,7 @@ function passthrough()
 {
     for repo in . "${repos[@]}"; do
         repoDir=$(basename ${repo})
-        repoName=$(basename $(cd ${repoDir} && pwd))
+        repoName=$(basename "$(cd ${repoDir} && pwd)")
         if ! test -d ${repoDir}/.git; then
             echo >&2
             echo "!! Repo ${repoName} not yet cloned" >&2
@@ -183,7 +183,7 @@ function dry_run()
     echo ">> git" "$@" "(dry-run)"
     for repo in . "${repos[@]}"; do
         repoDir=$(basename ${repo})
-        repoName=$(basename $(cd ${repoDir} && pwd))
+        repoName=$(basename "$(cd ${repoDir} && pwd)")
         if ! test -d ${repoDir}/.git; then
             echo "!! Repo ${repoName} not yet cloned" >&2
             exit 1
@@ -199,7 +199,7 @@ function dry_run()
 
     for repo in . "${repos[@]}"; do
         repoDir=$(basename ${repo})
-        repoName=$(basename $(cd ${repoDir} && pwd))
+        repoName=$(basename "$(cd ${repoDir} && pwd)")
         echo ">> git" "$@" "(${repoName})"
         ( cd ${repoDir} && git "$@" )
         if test $? -ne 0; then

-----------------------------------------------------------------------


-- 
asterisk-scf/integration/gitall.git



More information about the asterisk-scf-commits mailing list