summaryrefslogtreecommitdiff
path: root/git-compiz
diff options
context:
space:
mode:
authoromega <marco.biasco@gmail.com>2009-04-25 21:46:51 +0200
committeromega <marco.biasco@gmail.com>2009-04-25 21:46:51 +0200
commit4f676be8c9509b296ba09181b6daf3aea4ed8f39 (patch)
tree12a81241e30d77df101c526fd71d55370b5382ba /git-compiz
parentc2edda629c1d0650815cfde200f95280d230f274 (diff)
downloadscripts-4f676be8c9509b296ba09181b6daf3aea4ed8f39.tar.gz
scripts-4f676be8c9509b296ba09181b6daf3aea4ed8f39.tar.bz2
Applied wget_write_to_and_throw.patch
Diffstat (limited to 'git-compiz')
-rwxr-xr-xgit-compiz6
1 files changed, 5 insertions, 1 deletions
diff --git a/git-compiz b/git-compiz
index 41f581a..34d32dd 100755
--- a/git-compiz
+++ b/git-compiz
@@ -430,7 +430,11 @@ else
# download via wget
printinfo info "${INFO_DOWNLOAD//%s/$b}";
logcmd echo
- wget -nv $1
+ if (echo $1 | grep -q '%writeto%'); then
+ wget -O `echo $1 | sed 's|.*%writeto%||'` -nv `echo $1 | sed 's|%writeto%.*||'`
+ else
+ wget -nv $1
+ fi
# extract
printinfo info "${INFO_EXTRACT//%s/$b}";
logcmd echo