mirror of
https://github.com/linuxserver/docker-baseimage-debian.git
synced 2026-02-19 16:57:21 +08:00
run only when env is set
This commit is contained in:
parent
f0fd6dab33
commit
92d4e80fa1
@ -1,7 +1,7 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
# shellcheck shell=bash
|
||||
|
||||
if [[ -z ${LSIO_NON_ROOT_USER} ]]; then
|
||||
if [[ -z ${LSIO_NON_ROOT_USER} ]] && [[ -n ${ATTACHED_DEVICES_PERMS} ]]; then
|
||||
FILES=$(find ${ATTACHED_DEVICES_PERMS} -print 2>/dev/null)
|
||||
|
||||
for i in ${FILES}; do
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user