Sign in
apache
/
incubator-devlake
/
refs/tags/v0.9.1-test3
/
.
/
scripts
/
export-env.sh
blob: f5c088b95a15747bd41e727d43bb97c655ebb1ba [
file
] [
log
] [
blame
]
#!/bin/sh
SCRIPT_DIR
=
"$( cd "
$
(
dirname
"$0"
)
" && pwd )"
FILE
=
$SCRIPT_DIR
/../.
env
if
[
-
f
"$FILE"
];
then
export $
(
grep
-
v
'^#'
$FILE
|
sed
's/#.*$//g'
|
xargs
)
else
echo
"$FILE does not exist."
fi