X-Git-Url: http://git.treefish.org/~alex/bitvalue.git/blobdiff_plain/6b2d0110e6698d9957179a4e985d9f0a26ed0792..refs/heads/master:/bitvalue?ds=sidebyside diff --git a/bitvalue b/bitvalue index 1c08081..0483eb1 100755 --- a/bitvalue +++ b/bitvalue @@ -14,19 +14,19 @@ Arguments: while getopts ':ht:' option; do case "$option" in - h) echo "$USAGE" - exit - ;; - t) TIMESPAN=$OPTARG - ;; - :) printf "missing argument for -%s\n" "$OPTARG" >&2 - echo "$usage" >&2 - exit 1 - ;; - \?) printf "illegal option: -%s\n" "$OPTARG" >&2 - echo "$usage" >&2 - exit 1 - ;; + h) echo "$USAGE" + exit + ;; + t) TIMESPAN=$OPTARG + ;; + :) printf "missing argument for -%s\n" "$OPTARG" >&2 + echo "$usage" >&2 + exit 1 + ;; + \?) printf "illegal option: -%s\n" "$OPTARG" >&2 + echo "$usage" >&2 + exit 1 + ;; esac done shift $((OPTIND - 1)) @@ -42,7 +42,7 @@ fi source $CONFIG -URL="https://$HOST/export_data.csv?\ +URL="http://$HOST/export_data.csv?\ currency=$CURRENCY&\ data_type=price&\ exchange=$EXCHANGE&\