From c8930472453c588927954ad48aaa02fe3e22dbea Mon Sep 17 00:00:00 2001 From: Nathaniel van Diepen Date: Mon, 3 Jun 2024 13:15:14 -0600 Subject: [PATCH] Fix #881 --- package/rmkit/launcherctl-remux | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package/rmkit/launcherctl-remux b/package/rmkit/launcherctl-remux index d0c1e5436..fbc0d9907 100755 --- a/package/rmkit/launcherctl-remux +++ b/package/rmkit/launcherctl-remux @@ -7,7 +7,7 @@ remux_ppid() { grep "PPid:" "/proc/$(remux_pid)/status" | awk '{print $2}' } draft_apps() { - find {/opt,}/etc/draft -maxdepth 1 -type f | while read -r file; do + find {/opt,}/etc/draft -maxdepth 1 -type f 2> /dev/null | while read -r file; do name="$(grep 'name=' "$file" | sed 's|^name=||')" call="$(grep 'call=' "$file" | sed 's|^call=||')" echo -e "${name}\t${call}" @@ -89,7 +89,7 @@ case "$1" in systemctl disable remux.service ;; apps) - find {/opt,}/etc/draft -maxdepth 1 -type f | while read -r file; do + find {/opt,}/etc/draft -maxdepth 1 -type f 2> /dev/null | while read -r file; do grep 'name=' "$file" | sed 's|^name=||' done ;;