aboutsummaryrefslogtreecommitdiff
path: root/alpine-chroot-go
blob: a2cf45517f6401e57172b9877745b727a4decec4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

if [ -z "$1" ]
then
	printf 'usage: %s [OPTIONS] NEWROOT [COMMAND [ARG]...]\n' "$0" >&2
	exit 1
fi

umask 022

exec sudo chroot "$@"