summaryrefslogtreecommitdiff
path: root/scripts/desktop/dmenu-path0
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/desktop/dmenu-path0')
-rwxr-xr-xscripts/desktop/dmenu-path02
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/desktop/dmenu-path0 b/scripts/desktop/dmenu-path0
index 593ecf6..c90ecfe 100755
--- a/scripts/desktop/dmenu-path0
+++ b/scripts/desktop/dmenu-path0
@@ -1,3 +1,3 @@
#! /usr/bin/env sh
# https://github.com/ema/dotfiles/blob/fb7f5cab530daba74edefb9cecb401262db063a9/bin/dmenu_path
-printf $PATH -print0 | tr ':' '\0' | uniq -z | xargs -0 ls -Llu --time-style=+%s | awk '/^(-|l)/ { printf $6" "$7"\0" }' | sort -zrn | cut -z -d' ' -f 2
+printf $PATH -print0 | tr ':' '\0' | uniq -z | xargs -0 ls -Llu --time-style=+%s 2>/dev/null | awk '/^(-|l)/ { printf $6" "$7"\0" }' | sort -zrn | cut -z -d' ' -f 2