big update
This commit is contained in:
parent
833e967aee
commit
72c73f9b18
30 changed files with 132 additions and 60 deletions
18
.local/bin/giteadelimg
Executable file
18
.local/bin/giteadelimg
Executable file
|
@ -0,0 +1,18 @@
|
|||
#!/bin/bash
|
||||
|
||||
read -rsp "PASSWD: " PASSWD; echo
|
||||
read -rp "OWNER: " OWN
|
||||
read -rp "NAME: " NAME
|
||||
|
||||
TOK="$(jq -rR '@uri' <<< "$PASSWD")"
|
||||
|
||||
API="https://ange:$TOK@git.gmoker.com/api/v1/packages"
|
||||
|
||||
PKG="$(curl "$API/$OWN" | jq -r ".[] | select(.name == \"$NAME\").version")"
|
||||
echo "$PKG"
|
||||
read -rp "Continue?"
|
||||
while read -r pkg; do
|
||||
(set -x
|
||||
curl -XDELETE "$API/$OWN/container/$(jq -rR '@uri' <<< "$NAME")/$pkg"
|
||||
)
|
||||
done <<< "$PKG"
|
Loading…
Add table
Add a link
Reference in a new issue