Don't clobber env

This commit is contained in:
Thomas E Lackey 2023-11-06 22:46:33 -06:00
parent bd4d564a0d
commit fd0b4185dd

View File

@ -8,9 +8,13 @@ mkdir -p $TRG_DIR
cp -rp $SRC_DIR $TRG_DIR/
if [ -f ".env" ]; then
TMPENV=`mktemp`
declare -px > $TMPENV
set -a
source .env
source $TMPENV
set +a
rm -f $TMPENV
fi
for f in $(find $TRG_DIR -regex ".*.[tj]sx?$" -type f | grep -v 'node_modules'); do