X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Flive-functions;h=8bf9c38e7a5f3456c35ef2bc3899bd7d1c9cb34e;hb=refs%2Ftags%2Fdebian%2F1.157.3-1;hp=d19b0d5b21afbf4e79947a4a1a9bcec3fc24f25d;hpb=dc73dcb0c6d1b0bff1d2db183613cc96a15a4dc1;p=live-boot-grml.git 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