Skip to content

Commit

Permalink
[skip audit]fix volume path when cita_run (#905)
Browse files Browse the repository at this point in the history
  • Loading branch information
rink1969 authored Dec 26, 2019
1 parent 2472138 commit 556333e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

# OS
if [[ "$(uname)" == 'Darwin' ]]; then
readonly SOURCE_DIR="$(dirname "$(realpath "$0")")"
SOURCE_DIR="$(dirname "$(realpath "$0")")"
else
readonly SOURCE_DIR="$(dirname "$(readlink -f "$0")")"
SOURCE_DIR="$(dirname "$(readlink -f "$0")")"
fi

readonly CONTAINER_NAME_HASH=$(echo "${SOURCE_DIR}" | md5sum | cut -d " " -f 1)
Expand All @@ -23,6 +23,7 @@ else
fi
readonly CONTAINER_NAME="cita_run${CONTAINER_NAME_HASH}"
readonly DOCKER_IMAGE='cita/cita-run:ubuntu-18.04-20191128'
readonly SOURCE_DIR="$(dirname "$SOURCE_DIR")"
fi

# Patch from crates.io.
Expand Down

0 comments on commit 556333e

Please sign in to comment.