blob: ff9ba32933f918fd450a662be13e3e185cea87d1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#!/bin/sh
{
vars=$(set |
grep "^[a-zA-Z][^=]*='[^']*'$" |
grep -v '^IFS=' |
grep -v '^TERM' |
grep -v '^PPID' |
grep -v '^PS[1-9]=' |
cat)
echo "${vars}"
echo "${vars}" | sed -e 's!^\([a-zA-Z][^=]*\)=.*$!export \1!'
} >bin/restore.env.source
echo "RUN: '. bin/restore.env.source'"
|