From 0fd7c0445ecd80c3813114ed08efcf9f7be6d4eb Mon Sep 17 00:00:00 2001 From: Adrian Dvergsdal Date: Tue, 28 Oct 2014 19:04:01 +0100 Subject: [PATCH] Remove syntax from script, keep it in readme (DRY) --- README.md | 2 +- run | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 3fc039e..1ff6f71 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ Usage ----- - Define users as last arguments to `docker run`, one user per argument - (syntax: `user:[pass[:e]][:[uid][:gid]]`). + (syntax: `user:pass[:e][:[uid][:gid]]`). - You must set custom UID for your users if you want them to make changes to your mounted volumes with permissions matching your host filesystem. - Mount volumes in user's home folder. diff --git a/run b/run index ffe45f9..ea281ab 100644 --- a/run +++ b/run @@ -1,7 +1,6 @@ #!/bin/bash for users in "$@"; do - # user:[pass[:e]][:[uid][:gid]] IFS=':' read -a data <<< "$users" user="${data[0]}" pass="${data[1]}"