diff options
author | schwab <schwab@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-03-18 22:43:26 +0000 |
---|---|---|
committer | schwab <schwab@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-03-18 22:43:26 +0000 |
commit | fadfdd5a12bc02d4ce8175ea5efa766e25be7bbf (patch) | |
tree | 53674b4ef6655b679a79136a67b036104fcae197 /contrib/gcc_update | |
parent | 782858b8cb5960a958ff47f1fe62fd9896596002 (diff) | |
download | gcc-fadfdd5a12bc02d4ce8175ea5efa766e25be7bbf.tar.gz |
* gcc_update (apply_patch): Properly quote $1.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@96705 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'contrib/gcc_update')
-rwxr-xr-x | contrib/gcc_update | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/contrib/gcc_update b/contrib/gcc_update index 6b1c3f14185..dfe35dbdc16 100755 --- a/contrib/gcc_update +++ b/contrib/gcc_update @@ -166,15 +166,15 @@ touch_files_reexec () { # This functions applies a patch to an existing tree. apply_patch () { - if [ -f $1 ]; then + if [ -f "$1" ]; then echo "Applying patch file $1" - case "$1" in + case $1 in *gz) - gzip -d -c $1 | patch -p1 ;; + gzip -d -c "$1" | patch -p1 ;; *bz2) - bzip2 -d -c $1 | patch -p1 ;; + bzip2 -d -c "$1" | patch -p1 ;; *) - cat $1 | patch -p1 ;; + patch -p1 < "$1";; esac fi touch_files_reexec |