mirror of
https://github.com/genuinetools/reg.git
synced 2024-10-03 22:01:45 -04:00
3834c605e5
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
18 lines
415 B
Bash
Executable file
18 lines
415 B
Bash
Executable file
#!/usr/bin/env bash
|
|
set -eu
|
|
|
|
target="${1:-}"
|
|
|
|
if [[ -z "${DISABLE_WARN_OUTSIDE_CONTAINER:-}" ]]; then
|
|
(
|
|
echo
|
|
echo
|
|
echo "WARNING: you are not in a container."
|
|
echo "Use \"make -f docker.Makefile $target\" or set"
|
|
echo "DISABLE_WARN_OUTSIDE_CONTAINER=1 to disable this warning."
|
|
echo
|
|
echo "Press Ctrl+C now to abort."
|
|
echo
|
|
) >&2
|
|
sleep 10
|
|
fi
|