mirror of
https://github.com/denisidoro/navi
synced 2024-11-10 14:04:17 +00:00
Add test cheat
This commit is contained in:
parent
365294d920
commit
b3ab91a9a0
2 changed files with 14 additions and 4 deletions
|
@ -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 \
|
||||
|
|
10
tests/cheats/corner_cases.cheat
Normal file
10
tests/cheats/corner_cases.cheat
Normal 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"
|
Loading…
Reference in a new issue