summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKylie McClain <somasis@exherbo.org>2015-12-06 16:20:16 -0500
committerKylie McClain <somasis@exherbo.org>2015-12-06 16:21:22 -0500
commitdaff6688d5ca542c2e6a6743900b93d92bcd7988 (patch)
treeafaf64d04cc9fdf10002da2c7b2e3a930e99f681
parent9cf296cf2908d609e948274fa5891ebdc22663d5 (diff)
downloadwget-curl-daff6688d5ca542c2e6a6743900b93d92bcd7988.tar.gz
wget-curl-daff6688d5ca542c2e6a6743900b93d92bcd7988.tar.xz
wget-curl-daff6688d5ca542c2e6a6743900b93d92bcd7988.zip
only send getopt output to stderr; remove -i from default
-rwxr-xr-xwget5
1 files changed, 2 insertions, 3 deletions
diff --git a/wget b/wget
index d55583a..928f45d 100755
--- a/wget
+++ b/wget
@@ -95,9 +95,8 @@ wget_help() {
echo "yep"
}
-echo "$0 $@" >&2
set -- $(getopt -n wget -o 'VhcO:T:t:qH:' -l 'version,help,continue,output-document:,timeout:,tries:,quiet,post-data:,post-file:,header:' -- $@)
-echo "$@" >&2
+echo "$0 $@" >&2
while [[ $# -ne 0 ]];do
case "$1" in
--) shift;urls="$@" ;;
@@ -115,7 +114,7 @@ while [[ $# -ne 0 ]];do
shift
done
-default='-L --remote-name-all -i'
+default='-# -L --remote-name-all'
eval curl ${default} ${continue} ${output} ${timeout} ${tries} ${quiet} ${post_data} ${post_file} -- ${urls}