clean up shell scripts
This commit is contained in:
parent
b4ad04e6be
commit
890dc7638e
3 changed files with 539 additions and 514 deletions
common/.local/bin
File diff suppressed because it is too large
Load diff
|
@ -1,5 +1,4 @@
|
|||
#!/bin/sh
|
||||
# shellcheck disable=2154
|
||||
|
||||
term=
|
||||
[ -n "$SCRATCHPAD" ] && {
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#!/bin/sh
|
||||
# shellcheck disable=2089,2090
|
||||
|
||||
year=$1
|
||||
month=$2
|
||||
|
@ -25,12 +24,12 @@ filters='[
|
|||
]'
|
||||
|
||||
curl -s \
|
||||
-u "apikey:${API_KEY}" \
|
||||
-G "${API_URL}/api/v3/time_entries" \
|
||||
--data-urlencode "filters=${filters}" \
|
||||
--data-urlencode "pageSize=${PAGE_SIZE}" |
|
||||
jq -r '._embedded.elements | map(.hours) | join(" ")' |
|
||||
awk '{
|
||||
-u "apikey:${API_KEY}" \
|
||||
-G "${API_URL}/api/v3/time_entries" \
|
||||
--data-urlencode "filters=${filters}" \
|
||||
--data-urlencode "pageSize=${PAGE_SIZE}" |
|
||||
jq -r '._embedded.elements | map(.hours) | join(" ")' |
|
||||
awk '{
|
||||
gsub(/PT/, "");
|
||||
gsub(/H/, "H ");
|
||||
gsub(/M/, "M ");
|
||||
|
|
Loading…
Add table
Reference in a new issue