From: Connor Lane Smith Date: Mon, 17 Oct 2011 09:22:23 +0000 (+0100) Subject: simplify dmenu_run X-Git-Url: https://git.danieliu.xyz/?a=commitdiff_plain;h=70b3418e3e44a562cec860033d2a3bbf640f3084;hp=cf641ae49677ae0435780e0641d9b347a4325044;p=dmenu.git simplify 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 )