From b3416142f2a676acbfca0738ea386d40bef74313 Mon Sep 17 00:00:00 2001 From: Marco Amadori Date: Sat, 11 Oct 2008 23:31:22 +0200 Subject: Removed all "cat | grep", with grep, awk and sed. --- scripts/live-functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/live-functions') 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 -- cgit v1.2.3