mirror of
https://github.com/zokradonh/kopano-docker.git
synced 2026-08-22 13:52:56 +00:00
some more shellcheck
fixes #41 Signed-off-by: Felix Bartels <felix@host-consultants.de>
This commit is contained in:
+4
-1
@@ -1,7 +1,10 @@
|
||||
#!/bin/sh
|
||||
if [ ! $(id -u) -eq 0 ]; then
|
||||
if [ ! "$(id -u)" -eq 0 ]; then
|
||||
echo "This script may need to be run as root to be able to use docker/docker-compose through it."
|
||||
fi
|
||||
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
docker run \
|
||||
--rm -it \
|
||||
-u $(id -u ${USER}):$(id -g ${USER}) \
|
||||
|
||||
Reference in New Issue
Block a user