anthony / Рекурсивная выгрузка статей из Confluence
0 likes
0 forks
1 files
Last active
1 | #!/bin/bash |
2 | |
3 | # 1. Указать реквизиты доступа к confluence |
4 | USERNAME="" |
5 | PASSWORD="" |
6 | CONFLUENCE_URL="" |
7 | OUTPUT_PATH="./confluence/" |
8 | |
9 | # 2. Вызвать: ./confluence_get_article.sh <page_id> |
anthony / Get latest release from GitHub
0 likes
0 forks
1 files
Last active
1 | #!/bin/bash |
2 | get_latest_release() { |
3 | curl --silent "https://api.github.com/repos/$1/releases/latest" | # Get latest release from GitHub api |
4 | grep '"tag_name":' | # Get tag line |
5 | sed -E 's/.*"([^"]+)".*/\1/' # Pluck JSON value |
6 | } |
Newer
Older