mirror of
https://github.com/koenrh/dnscontrol-action.git
synced 2025-01-06 15:18:34 +08:00
15 lines
301 B
Bash
Executable file
15 lines
301 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
set -eo pipefail
|
|
|
|
IFS=
|
|
OUTPUT="$(dnscontrol "$1")"
|
|
|
|
echo "$OUTPUT"
|
|
|
|
# https://github.community/t/set-output-truncates-multiline-strings/16852/3
|
|
OUTPUT="${OUTPUT//'%'/'%25'}"
|
|
OUTPUT="${OUTPUT//$'\n'/'%0A'}"
|
|
OUTPUT="${OUTPUT//$'\r'/'%0D'}"
|
|
|
|
echo "::set-output name=output::$OUTPUT"
|