Add test cheat

This commit is contained in:
Denis Isidoro 2020-03-05 15:06:31 -03:00
parent 365294d920
commit b3ab91a9a0
2 changed files with 14 additions and 4 deletions

View File

@ -10,11 +10,11 @@ gen_formula() {
version="$(latest_version_released)"
header "version: ${version}"
header "sha_for linux-amd64..."
sha_linux="$(sha_for_asset_on_github "$version" "linux-amd64")"
header "sha_for x86_64-unknown-linux-musl..."
sha_linux="$(sha_for_asset_on_github "$version" "x86_64-unknown-linux-musl")"
header "sha_for macos-amd64..."
sha_osx="$(sha_for_asset_on_github "$version" "macos-amd64")"
header "sha_for x86_64-osx..."
sha_osx="$(sha_for_asset_on_github "$version" "x86_64-osx")"
header "rb..."
curl -s https://raw.githubusercontent.com/denisidoro/homebrew-tools/master/navirs.rb \

View File

@ -0,0 +1,10 @@
% test
# reset terminal title
echo -ne "\033]0;$(hostname)\007"
# Find primary, local IP address
echo "8.8.8.8 via 172.17.0.1 dev eth0 src 172.17.0.2" | sed -E 's/.*src ([0-9.]+).*/\1/p' | head -n1
# simple echo
echo "foo"