Merge "Don't match editor backup files in environment"
This commit is contained in:
commit
92d4ed73db
@ -73,8 +73,11 @@ PROFILE_DIR=$(mktemp -d /tmp/profiledir.XXXXXX)
|
|||||||
ENVIRONMENT_D_DIR=$target_dir/../environment.d
|
ENVIRONMENT_D_DIR=$target_dir/../environment.d
|
||||||
|
|
||||||
if [ -d $ENVIRONMENT_D_DIR ] ; then
|
if [ -d $ENVIRONMENT_D_DIR ] ; then
|
||||||
for env_file in $ENVIRONMENT_D_DIR/* ; do
|
env_files=$(find $ENVIRONMENT_D_DIR \
|
||||||
source $env_file
|
-maxdepth 1 -xtype f -printf '%f\n' | \
|
||||||
|
grep -E "^[0-9A-Za-z_\.-]+$")
|
||||||
|
for env_file in $env_files ; do
|
||||||
|
source $ENVIRONMENT_D_DIR/$env_file
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user