projects
/
live-boot-grml.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Including wc in initramfs (Closes: #512413).
[live-boot-grml.git]
/
scripts
/
live-functions
diff --git
a/scripts/live-functions
b/scripts/live-functions
index
d19b0d5
..
8bf9c38
100644
(file)
--- a/
scripts/live-functions
+++ b/
scripts/live-functions
@@
-21,7
+21,7
@@
really_export ()
STRING="${1}"
VALUE="$(eval echo -n \${$STRING})"
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
then
sed -i -e 's/\('${STRING}'=\).*$/\1'${VALUE}'/' /live.vars
else