Commit 43d8d024 authored by Kenji Okimoto's avatar Kenji Okimoto
Browse files

Remove needless quote

Before: broken command line option
  curl -qsILf "" "$1" >&4 2>&1
  curl -qsILf "--ipv4" "$1" >&4 2>&1

After:
  curl -qsILf "$1" >&4 2>&1
  curl -qsILf --ipv4 "$1" >&4 2>&1
parent 8ff2af42
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -250,28 +250,28 @@ http_head_curl() {
  options=""
  [ -n "${IPV4}" ] && options="--ipv4"
  [ -n "${IPV6}" ] && options="--ipv6"
  curl -qsILf "${options}" "$1" >&4 2>&1
  curl -qsILf ${options} "$1" >&4 2>&1
}

http_get_curl() {
  options=""
  [ -n "${IPV4}" ] && options="--ipv4"
  [ -n "${IPV6}" ] && options="--ipv6"
  curl -q -o "${2:--}" -sSLf "${options}" "$1"
  curl -q -o "${2:--}" -sSLf ${options} "$1"
}

http_head_wget() {
  options=""
  [ -n "${IPV4}" ] && options="--inet4-only"
  [ -n "${IPV6}" ] && options="--inet6-only"
  wget -q --spider "${options}" "$1" >&4 2>&1
  wget -q --spider ${options} "$1" >&4 2>&1
}

http_get_wget() {
  options=""
  [ -n "${IPV4}" ] && options="--inet4-only"
  [ -n "${IPV6}" ] && options="--inet6-only"
  wget -nv "${options}" -O "${2:--}" "$1"
  wget -nv ${options} -O "${2:--}" "$1"
}

fetch_tarball() {