[Lunar-commits] <lunar> Removed erroneous directory check in ld_remove()
Stefan Wold
ratler at lunar-linux.org
Fri Sep 24 18:56:11 CEST 2010
commit 82d50513cdaae9dfa15d7dea330f7e9804ec490b
Author: Stefan Wold <ratler at lunar-linux.org>
Date: Fri Sep 24 18:56:11 2010 +0200
Removed erroneous directory check in ld_remove()
---
var/lib/lunar/functions/misc.lunar | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/var/lib/lunar/functions/misc.lunar b/var/lib/lunar/functions/misc.lunar
index 1be3080..9fd41ef 100644
--- a/var/lib/lunar/functions/misc.lunar
+++ b/var/lib/lunar/functions/misc.lunar
@@ -47,8 +47,8 @@ ld_add() {
ld_remove() {
debug_msg "ld_remove ($@)"
- if [ ! -z "$1" ] && [ -d "$1" ] ; then
- if [ `grep -s $1 /etc/ld.so.conf` ] ; then
+ if [ ! -z "$1" ]; then
+ if grep -q $1 /etc/ld.so.conf ; then
TMP_LD_CONF=$(temp_create "ldsoconf")
verbose_msg "Removing $1 from ld.so.conf"
More information about the Lunar-commits
mailing list