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

16 lines
311 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'"