From 70b3418e3e44a562cec860033d2a3bbf640f3084 Mon Sep 17 00:00:00 2001 From: Connor Lane Smith Date: Mon, 17 Oct 2011 10:22:23 +0100 Subject: simplify dmenu_run --- dmenu_run | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dmenu_run') diff --git a/dmenu_run b/dmenu_run index 21dc72b..2747919 100755 --- a/dmenu_run +++ b/dmenu_run @@ -5,7 +5,7 @@ if [ ! -d "`dirname "$CACHE"`" ]; then fi ( IFS=: - if test "`ls -dt $PATH "$CACHE" 2> /dev/null | sed 1q`" != "$CACHE"; then + if [ "`ls -dt $PATH "$CACHE" | head -n 1`" != "$CACHE" ]; then lsx $PATH | sort -u > "$CACHE" fi ) -- cgit v1.2.3-13-gbd6f