summaryrefslogtreecommitdiff
path: root/scripts/live-functions
diff options
context:
space:
mode:
authorMarco Amadori <marco.amadori@gmail.com>2008-10-11 23:31:22 +0200
committerDaniel Baumann <daniel@debian.org>2011-03-09 17:48:02 +0100
commitb3416142f2a676acbfca0738ea386d40bef74313 (patch)
treeee906f0e8e90b74fe3ab76c15a760b940cf9e4ee /scripts/live-functions
parentf631495de9586b0be892226bcdcf6802d8fc2143 (diff)
downloadlive-boot-b3416142f2a676acbfca0738ea386d40bef74313.tar.gz
live-boot-b3416142f2a676acbfca0738ea386d40bef74313.zip
Removed all "cat | grep", with grep, awk and sed.
Diffstat (limited to 'scripts/live-functions')
-rw-r--r--scripts/live-functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/live-functions b/scripts/live-functions
index d19b0d5..8bf9c38 100644
--- a/scripts/live-functions
+++ b/scripts/live-functions
@@ -21,7 +21,7 @@ really_export ()
STRING="${1}"
VALUE="$(eval echo -n \${$STRING})"
- if [ -f /live.vars ] && cat /live.vars | grep -sq "export ${STRING}"
+ if [ -f /live.vars ] && grep -sq "export ${STRING}" /live.vars
then
sed -i -e 's/\('${STRING}'=\).*$/\1'${VALUE}'/' /live.vars
else