Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c5298c6f authored by Jorge Ruesga's avatar Jorge Ruesga
Browse files

CMFM: Ignore stderr from stat list command



We don't need "No such file or directory" from path/.* or path/* because
is previously checked by ls, and it is only returned when no matches were found,
which indeed it is not an error.
Signed-off-by: default avatarjruesga <jorge@ruesga.com>

Change-Id: I4fa0ef947a30e42a4cccd0c95855c4953a34e874
parent 5b4a6b62
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -52,7 +52,7 @@
  <command commandId="mountpointinfo" commandPath="/system/bin/mount" commandArgs="" />

  <!-- List/Find/Info -->
  <command commandId="ls" commandPath="/system/bin/ls" commandArgs="%1$s 1&gt; /dev/null &amp;&amp; /system/xbin/stat -t %1$s.* %1$s* 2&gt;&amp;1" />
  <command commandId="ls" commandPath="/system/bin/ls" commandArgs="%1$s 1&gt; /dev/null &amp;&amp; /system/xbin/stat -t %1$s.* %1$s* 2&gt; /dev/null" />
  <command commandId="fileinfo" commandPath="/system/xbin/stat" commandArgs="-t %1$s 2&gt;&amp;1" />
  <command commandId="find" commandPath="/system/xbin/find" commandArgs="%1$s \\( -name %2$s -o -name %3$s -o -name %4$s -o -name %5$s -o -name %6$s \\) -exec /system/xbin/stat -t {} 2&gt;&amp;1 \\;" />
  <command commandId="quickfoldersearch" commandPath="/system/bin/ls" commandArgs="-aFd %1$s.* %1$s* 2&gt; /dev/null | /system/xbin/grep -e '^d' -e '^ld' | /system/xbin/cut -d&quot; &quot; -f2-" />