feat: PGP sign the checksum file in releases (#5757)

This commit is contained in:
Dean Sheather
2023-01-17 12:45:27 -06:00
committed by GitHub
parent b19d644162
commit 53c456a442
4 changed files with 143 additions and 3 deletions

View File

@ -172,10 +172,10 @@ fatal() {
CODER_HOST=http://127.0.0.1:3000 start_cmd SITE date yarn --cwd=./site dev --host
interfaces=(localhost)
if which ip >/dev/null 2>&1; then
if command -v ip >/dev/null; then
# shellcheck disable=SC2207
interfaces+=($(ip a | awk '/inet / {print $2}' | cut -d/ -f1))
elif which ifconfig >/dev/null 2>&1; then
elif command -v ifconfig >/dev/null; then
# shellcheck disable=SC2207
interfaces+=($(ifconfig | awk '/inet / {print $2}'))
fi