Commit 5d6e834d authored by Clement Bois's avatar Clement Bois
Browse files

feat: configurable @url@ timeout

parent d4a4d44c
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -38,7 +38,7 @@ function eval_secret() {
    then
      decoded=$(mktemp)
      errors=$(mktemp)
      if curl -s -S -f --connect-timeout 5 -o "${decoded}" "$url" 2> "${errors}"
      if curl -s -S -f --connect-timeout "${TBC_SECRET_URL_TIMEOUT:-5}" -o "${decoded}" "$url" 2> "${errors}"
      then
        # shellcheck disable=SC2086
        export ${name}="$(cat ${decoded})"
@@ -50,7 +50,7 @@ function eval_secret() {
    then
      decoded=$(mktemp)
      errors=$(mktemp)
      if wget -T 5 -O "${decoded}" "$url" 2> "${errors}"
      if wget -T "${TBC_SECRET_URL_TIMEOUT:-5}" -O "${decoded}" "$url" 2> "${errors}"
      then
        # shellcheck disable=SC2086
        export ${name}="$(cat ${decoded})"