1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/selftest/save.env.sh

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
298 B
Bash
Raw Normal View History

#!/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'"