]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
- quote $__PWD, as it may contain spaces
authorsaq <saq@pld-linux.org>
Mon, 8 Dec 2003 00:38:57 +0000 (00:38 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    builder.sh -> 1.234

builder.sh

index c01f6df3fc7c8307d5ed8c34abec14621c72e4f8..2ce6ce4f39937472e488cce116c0d7e371cf953a 100644 (file)
@@ -301,7 +301,7 @@ Exit_error()
                set -v;
        fi
 
-       cd $__PWD
+       cd "$__PWD"
 
        case "$1" in
                "err_no_spec_in_cmdl" )
@@ -333,7 +333,7 @@ init_builder()
        SOURCE_DIR="`$RPM --eval '%{_sourcedir}'`"
        SPECS_DIR="`$RPM --eval '%{_specdir}'`"
 
-       __PWD=`pwd`
+       __PWD="`pwd`"
 }
 
 get_spec()
@@ -1380,6 +1380,6 @@ case "$COMMAND" in
        "version" )
                echo "$VERSION";;
 esac
-cd $__PWD
+cd "$__PWD"
 
 # vi:syntax=sh:tw=80:ts=3:sw=4
This page took 0.610442 seconds and 4 git commands to generate.