Skip to content

Commit

Permalink
use globbing instead of find
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisse committed Oct 10, 2024
1 parent 4d1b0e1 commit 24897de
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions readme-vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ app_setup_block: |
readme_hwaccel: true
# changelog
changelogs:
- {date: "10.10.24:", desc: "Use globbing instead of find"}
- {date: "18.07.24:", desc: "Rebase to Ubuntu Noble."}
- {date: "12.02.24:", desc: "Use universal hardware acceleration blurb"}
- {date: "09.01.24:", desc: "Set ownership on TranscoderTempDirectory when it's been saved in Preferences."}
Expand Down
5 changes: 2 additions & 3 deletions root/etc/s6-overlay/s6-rc.d/init-plex-gid-video/run
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
#!/usr/bin/with-contenv bash
# shellcheck shell=bash

FILES=$(find /dev/dri /dev/dvb -type c -print 2>/dev/null)

for i in ${FILES}; do
for i in /dev/dri/* /dev/dvb; do
[[ -c "${i}" ]] || continue
VIDEO_GID=$(stat -c '%g' "${i}")
VIDEO_UID=$(stat -c '%u' "${i}")
# check if user matches device
Expand Down

0 comments on commit 24897de

Please sign in to comment.