anthony / Get latest release from GitHub
0 喜欢
0 派生
1 文件
最后活跃于
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 | } |
anthony / Argument parser for bash scripts without getopt or getopts
0 喜欢
0 派生
1 文件
最后活跃于
Taken from b167d3ec4e4f94d246ebdc4bcfdfb6ac
1 | #!/usr/bin/env bash |
2 | |
3 | # Argument parser for bash scripts |
4 | # |
5 | # Author: Anthony Axenov (Антон Аксенов) |
6 | # Version: 1.6 |
7 | # License: MIT |
8 | # Description: https://git.axenov.dev/anthony/shell/src/branch/master/helpers/arg-parser |
9 | |
10 | #purpose Little helper to check if string matches PCRE |
上一页
下一页