Skip to content

Commit

Permalink
Fix tmp dir (#2269)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyler Jewell authored and Roman Iuvshin committed Sep 6, 2016
1 parent 9c9c8e9 commit ca1d0a5
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions che.sh
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,8 @@ docker_run() {
docker_run_with_env_file() {
if has_che_env_variables; then
get_list_of_che_system_environment_variables
docker_run --env-file="tmp" "$@"
rm -rf "tmp" > /dev/null
docker_run --env-file=tmp "$@"
rm -rf $PWD/tmp > /dev/null
else
docker_run "$@"
fi
Expand Down Expand Up @@ -358,9 +358,8 @@ has_che_env_variables() {
get_list_of_che_system_environment_variables() {
# See: http://stackoverflow.com/questions/4128235/what-is-the-exact-meaning-of-ifs-n
IFS=$'\n'
DOCKER_ENV="tmp"

touch "tmp"
DOCKER_ENV=$(get_mount_path $PWD)/tmp
touch $DOCKER_ENV

if has_default_profile; then
cat ~/.che/profiles/${CHE_PROFILE} >> $DOCKER_ENV
Expand Down

0 comments on commit ca1d0a5

Please sign in to comment.