Don't clobber env
This commit is contained in:
parent
bd4d564a0d
commit
fd0b4185dd
@ -8,9 +8,13 @@ mkdir -p $TRG_DIR
|
|||||||
cp -rp $SRC_DIR $TRG_DIR/
|
cp -rp $SRC_DIR $TRG_DIR/
|
||||||
|
|
||||||
if [ -f ".env" ]; then
|
if [ -f ".env" ]; then
|
||||||
|
TMPENV=`mktemp`
|
||||||
|
declare -px > $TMPENV
|
||||||
set -a
|
set -a
|
||||||
source .env
|
source .env
|
||||||
|
source $TMPENV
|
||||||
set +a
|
set +a
|
||||||
|
rm -f $TMPENV
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for f in $(find $TRG_DIR -regex ".*.[tj]sx?$" -type f | grep -v 'node_modules'); do
|
for f in $(find $TRG_DIR -regex ".*.[tj]sx?$" -type f | grep -v 'node_modules'); do
|
||||||
|
Loading…
Reference in New Issue
Block a user