Skip to content

Commit 7308d0b

Browse files
committed
run only when env is set
1 parent 6d177ba commit 7308d0b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • root/etc/s6-overlay/s6-rc.d/init-device-perms

root/etc/s6-overlay/s6-rc.d/init-device-perms/run

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/with-contenv bash
22
# shellcheck shell=bash
33

4-
if [[ -z ${LSIO_NON_ROOT_USER} ]]; then
4+
if [[ -z ${LSIO_NON_ROOT_USER} ]] && [[ -n ${ATTACHED_DEVICES_PERMS} ]]; then
55
FILES=$(find ${ATTACHED_DEVICES_PERMS} -print 2>/dev/null)
66

77
for i in ${FILES}; do
@@ -34,4 +34,4 @@ if [[ -z ${LSIO_NON_ROOT_USER} ]]; then
3434
fi
3535
fi
3636
done
37-
fi
37+
fi

0 commit comments

Comments
 (0)