mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
1399b2430a
shfmt -f selftest/ | xargs shfmt -w -p -i 0 -fn Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
16 lines
298 B
Bash
Executable File
16 lines
298 B
Bash
Executable File
#!/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'"
|