From b6955dd9b6be91d065dcbd7bcafb6d04b324d8b4 Mon Sep 17 00:00:00 2001 From: Ken Cochrane Date: Fri, 30 Dec 2011 16:42:06 -0500 Subject: [PATCH] It is usually safer to use the -o option in curl to specifiy your own temp file name in scripts because if the file changes in the url then your local file will also change and it will result in an error since you have that name hard coded in the next few lines (tar, rm) --- bin/compile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/compile b/bin/compile index 6b93f37..1403bf4 100755 --- a/bin/compile +++ b/bin/compile @@ -68,9 +68,9 @@ then if [ -d "vendor/lib/sasl2" ]; then export LIBMEMCACHED=$(pwd)/vendor else - curl -s -L -O $VENDORED_MEMCACHED - tar -zxvf vendor-libmemcached.tar.gz > /dev/null - rm vendor-libmemcached.tar.gz + curl -s -L -o tmp-libmemcached.tar.gz $VENDORED_MEMCACHED + tar -zxvf tmp-libmemcached.tar.gz > /dev/null + rm tmp-libmemcached.tar.gz export LIBMEMCACHED=$(pwd)/vendor fi