mirror of
https://gitlab.alpinelinux.org/alpine/cloud/tiny-cloud.git
synced 2025-12-15 11:22:43 +03:00
Refactor fake wget to use a yaml so we can set aws fake meta-data similar to how we set nocloud fake meta-data. Also move fake netcat to tests/bin/nc so its always there and we don't need to remember to call fake_netcat when needed.
7 lines
113 B
Bash
Executable File
7 lines
113 B
Bash
Executable File
#!/bin/sh
|
|
input="$(cat)"
|
|
case "$input" in
|
|
-*) echo "nc: bad input: \$input" >&2; exit 1;;
|
|
esac
|
|
echo "token-foo"
|