commit fd5e77c085bf407158de94be68273c02f9509d4d
parent 73d6e3d7af2dc466fe4c9b1ef429ff37f7a52d21
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Mon, 3 Dec 2018 15:01:17 +0100
Check that an image is specified
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/links/bin/docker-shell b/links/bin/docker-shell
@@ -8,6 +8,7 @@ function help {
echo "argument SHELL sets the shell to run in the image."
}
+[ $# -lt 1 ] && (help && exit 1)
case "$1" in
ubuntu-lts)
img="ubuntu:16.04"