aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2009-04-07 10:41:10 -0400
committerBill Nottingham <notting@redhat.com>2009-04-07 10:41:10 -0400
commit9aad74c042f2575aef7cca514967bbce9729e14d (patch)
treef5b49672c61ebffd007d740d65809a6b6ac7b1fb
parent957ae84d22fea61b2cd41d4bb3c497b3a4a6cadd (diff)
downloadinitscripts-9aad74c042f2575aef7cca514967bbce9729e14d.tar
initscripts-9aad74c042f2575aef7cca514967bbce9729e14d.tar.gz
initscripts-9aad74c042f2575aef7cca514967bbce9729e14d.tar.bz2
initscripts-9aad74c042f2575aef7cca514967bbce9729e14d.tar.xz
initscripts-9aad74c042f2575aef7cca514967bbce9729e14d.zip
Fix sort.
-rwxr-xr-xprefdm2
1 files changed, 1 insertions, 1 deletions
diff --git a/prefdm b/prefdm
index a1586b55..9597d02d 100755
--- a/prefdm
+++ b/prefdm
@@ -35,7 +35,7 @@ shopt -s execfail
[ -n "$preferred" ] && exec $preferred "$@" >/dev/null 2>&1 </dev/null
-for pkg in $(LC_ALL=C rpm -q --qf "%{NAME}\n" --whatprovides "service(graphical-login)"| sort -u) ; do
+for pkg in $(rpm -q --qf "%{NAME}\n" --whatprovides "service(graphical-login)"| LC_ALL=C sort -u) ; do
dm=$(rpm -q --provides $pkg | awk '/^service\(graphical-login\)/ { print $3 ; exit }')
if [ -n "$dm" ]; then
exec $dm "$@" >/dev/null 2>&1 </dev/null