Removed all "cat | grep", with grep, awk and sed.
[live-boot-grml.git] / scripts / live-bottom / 08persistence_excludes
index bc5c4d8..b7aac92 100755 (executable)
@@ -35,7 +35,7 @@ fi
 
 # live-initramfs script
 
-dirs="$(cat /root/etc/live-persistence.binds | grep -v '^#.*$' | grep -v '^ *$' | tr '\n' '\0')"
+dirs="$(sed -e '/^ *$/d' -e '/^#.*$/d' /root/etc/live-persistence.binds | tr '\n' '\0')"
 if [ -z "${dirs}" ]
 then
        exit 0