[Lunar-commits] <lunar> Only print installed modules in list_modules
Peter de Ridder
peter at lunar-linux.org
Thu May 30 20:31:40 CEST 2013
commit 37a6a07b0b9c188f4db7d68f5a3cf9c06b2dfc98
Author: Peter de Ridder <peter at lunar-linux.org>
Date: Thu, 30 May 2013 10:31:14 -0700
URL: https://github.com/lunar-linux/lunar/commit/37a6a07b0b9c188f4db7d68f5a3cf9c06b2dfc98
Only print installed modules in list_modules
---
libs/modules.lunar | +1/-1
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/libs/modules.lunar
+++ b/libs/modules.lunar
@@ -82,7 +82,7 @@ list_moonbase() {
# purpose : return a list of installed (or held) modules
list_installed() {
debug_msg "list_installed ($@)"
- sed "s/:[[:digit:]]*:\\([^:]\\++\\)\\?\\(installed\\|held\\)\\(+[^:]\\+\\)\\?:.*$//" "$MODULE_STATUS"
+ sed -n "s/:[[:digit:]]*:\\([^:]\\++\\)\\?\\(installed\\|held\\)\\(+[^:]\\+\\)\\?:.*$//p" "$MODULE_STATUS"
}
More information about the Lunar-commits
mailing list