From e08916694a1d34dbcbe0148742fdd73ae0911593 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Wed, 6 Jan 2021 08:52:38 -0600 Subject: run image from arg --- bin/run | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bin/run b/bin/run index 5a613e65..dced97a1 100755 --- a/bin/run +++ b/bin/run @@ -1,3 +1,8 @@ +if [ -z "$1" ]; then + echo "💥 error: no image specified; provide a valid image and tag (e.g. slskd/slskd:latest)" + exit 1 +fi + docker run -i \ -p 5000:5000 \ -p $SLSK_LISTEN_PORT:$SLSK_LISTEN_PORT \ @@ -12,4 +17,4 @@ docker run -i \ -e "SLSK_ENABLE_SECURITY=$SLSK_ENABLE_SECURITY" \ -e "SLSK_CONNECT_TIMEOUT=5000" \ -e "SLSK_INACTIVITY_TIMEOUT=15000" \ - slskd/slskd:latest \ No newline at end of file + $1 \ No newline at end of file -- cgit v1.2.3