diff options
-rw-r--r-- | data/scripts/common.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/data/scripts/common.sh b/data/scripts/common.sh index 0c5f3a2..0fbaa45 100644 --- a/data/scripts/common.sh +++ b/data/scripts/common.sh @@ -28,23 +28,23 @@ function communicate wlmac="$3" enmac="$4" year="$5" - shift 5 + shift 5 case "${type#*/}" in weekly) week="$1" - shift 1 - set -- -d "week=$week" "$@" + shift 1 + set -- -d "week=$week" "$@" ;; daily) month="$1" day="$2" - shift 2 + shift 2 set -- -d "month=$month" -d "day=$day" "$@" ;; esac curl --disable -Ls \ -d "type=${type%%/*}" -d "wlmac=$wlmac" \ - -d "enmac=$enmac" -d "year=$year" "$@" \ + -d "enmac=$enmac" -d "year=$year" -d "user=$USER" "$@" \ "$SERVER_URL$endpoint" } |