1
0
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:
Felix Bartels
2019-02-26 16:59:37 +01:00
parent b21beb96c2
commit 94a2b3ad12
3 changed files with 7 additions and 4 deletions
+4 -1
View File
@@ -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}) \