projects
/
grml-etc-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
2b66bf6
)
zshrc: drop insecure options from curl/wget cmdlines in simple-extract()
author
Michael Prokop
<mika@grml.org>
Thu, 7 May 2015 13:26:15 +0000
(15:26 +0200)
committer
Michael Prokop
<mika@grml.org>
Thu, 7 May 2015 13:28:00 +0000
(15:28 +0200)
etc/zsh/zshrc
patch
|
blob
|
history
diff --git
a/etc/zsh/zshrc
b/etc/zsh/zshrc
index
8cfb1cb
..
6ff7a88
100644
(file)
--- a/
etc/zsh/zshrc
+++ b/
etc/zsh/zshrc
@@
-3295,9
+3295,9
@@
simple-extract() {
elif [[ "$ARCHIVE" == (#s)(https|http|ftp)://* ]] ; then
if check_com curl; then
elif [[ "$ARCHIVE" == (#s)(https|http|ftp)://* ]] ; then
if check_com curl; then
- WGET_CMD="curl -L -
k -
s -o -"
+ WGET_CMD="curl -L -s -o -"
elif check_com wget; then
elif check_com wget; then
- WGET_CMD="wget -q -O -
--no-check-certificate
"
+ WGET_CMD="wget -q -O -"
else
print "ERROR: neither wget nor curl is installed" >&2
RC=$((RC+4))
else
print "ERROR: neither wget nor curl is installed" >&2
RC=$((RC+4))