echo "hi" | something
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Wait for a process to finish, then send a notification via ntfy. | |
# ntfy is a simple notification service that offers free, self-hosted, and hosted notifications: https://ntfy.sh/ | |
# Usage: ./wait-for-process.sh <pid> <ntfy-topic> | |
if [ $# -ne 2 ]; then | |
echo "Usage: $0 <pid> <ntfy-topic>" | |
exit 1 | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Wait for a process to finish, then send a notification via ntfy. | |
# ntfy is a simple notification service that offers free, self-hosted, and hosted notifications: https://ntfy.sh/ | |
# Usage: ./wait-for-process.sh <pid> <ntfy-topic> | |
if [ $# -ne 2 ]; then | |
echo "Usage: $0 <pid> <ntfy-topic>" | |
exit 1 | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -e | |
set -o pipefail | |
root_command() { | |
# shellcheck disable=SC2154 | |
supplied_resource_group="${args['--resource-group']}" | |
if [[ -n "$supplied_resource_group" ]]; then | |
if [[ "$(az group list --query "[?name=='$supplied_resource_group'] | length(@)")" == 0 ]]; then | |
echo "Resource group '$supplied_resource_group' does not exist" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -e | |
set -o pipefail | |
root_command() { | |
# shellcheck disable=SC2154 | |
supplied_resource_group="${args['--resource-group']}" | |
if [[ -n "$supplied_resource_group" ]]; then | |
if [[ "$(az group list --query "[?name=='$supplied_resource_group'] | length(@)")" == 0 ]]; then | |
echo "Resource group '$supplied_resource_group' does not exist" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -e | |
set -o pipefail | |
root_command() { | |
# shellcheck disable=SC2154 | |
supplied_resource_group="${args['--resource-group']}" | |
if [[ -n "$supplied_resource_group" ]]; then | |
if [[ "$(az group list --query "[?name=='$supplied_resource_group'] | length(@)")" == 0 ]]; then | |
echo "Resource group '$supplied_resource_group' does not exist" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -e | |
set -o pipefail | |
root_command() { | |
# shellcheck disable=SC2154 | |
supplied_resource_group="${args['--resource-group']}" | |
if [[ -n "$supplied_resource_group" ]]; then | |
if [[ "$(az group list --query "[?name=='$supplied_resource_group'] | length(@)")" == 0 ]]; then | |
echo "Resource group '$supplied_resource_group' does not exist" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -e | |
set -o pipefail | |
root_command() { | |
# shellcheck disable=SC2154 | |
supplied_resource_group="${args['--resource-group']}" | |
if [[ -n "$supplied_resource_group" ]]; then | |
if [[ "$(az group list --query "[?name=='$supplied_resource_group'] | length(@)")" == 0 ]]; then | |
echo "Resource group '$supplied_resource_group' does not exist" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -e | |
set -o pipefail | |
root_command() { | |
# shellcheck disable=SC2154 | |
resource_group="${args['--resource-group']}" | |
if [[ "$(az group list --query "[?name=='$resource_group'] | length(@)")" == 0 ]]; then | |
location="${args['--location']}" | |
if [[ -z "$location" ]]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -e | |
set -o pipefail | |
root_command() { | |
# shellcheck disable=SC2154 | |
resource_group="${args['--resource-group']}" | |
if [[ "$(az group list --query "[?name=='$resource_group'] | length(@)")" == 0 ]]; then | |
location="${args['--location']}" | |
if [[ -z "$location" ]]; then |
NewerOlder