]> git.ozlabs.org Git - next-scripts/commitdiff
Be consistent about quoting and indentation
authorStephen Rothwell <sfr@canb.auug.org.au>
Wed, 4 Jun 2008 00:52:20 +0000 (10:52 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 4 Jun 2008 00:52:20 +0000 (10:52 +1000)
update_trees

index bca715241677e7e9b7559370d9ccaf1f8f225cc0..a1925e6c7047ff557ec53bee7b4e3808b7a9eb6f 100755 (executable)
@@ -65,17 +65,19 @@ for name in $quilters; do
 
        execute git branch -D "quilt/$name"
        execute git checkout -b "quilt/$name" "$rbase" || sh -i || {
-               [ -f "$sfile.orig" ] && mv -f $sfile.orig $sfile
+               [ -f "$sfile.orig" ] &&
+                       mv -f "$sfile.orig" "$sfile"
                exit 1
        }
        author=$(grep -v '^#' ../real_control | awk -F '        ' '$3=="'"$name"'" { printf("%s", $1); }' | sed 's/,.*$//')
        execute git quiltimport --author "$author" --patches "../quilt/$name" || sh -i || {
-               [ -f "$sfile.orig" ] && mv -f $sfile.orig $sfile
+               [ -f "$sfile.orig" ] &&
+                       mv -f "$sfile.orig" "$sfile"
                exit 1
        }
 
        [ -f "$sfile.orig" ] &&
-               mv -f $sfile.orig $sfile
+               mv -f "$sfile.orig" "$sfile"
 done
 
 git checkout master