File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -25,11 +25,13 @@ if [[ $# -lt 1 ]] ; then
25
25
fi
26
26
27
27
# Create the destination directory, then do dirname on a non-existent file
28
- # inside it to give us an absolute paths with tilde characters resolved to the
29
- # destination directory. Readlink -f is a cleaner way of doing this but is not
30
- # available on a fresh macOS install.
28
+ # inside it to give us a path with tilde characters resolved (readlink -f is
29
+ # another way of doing this but is not available on a fresh macOS install).
30
+ # Finally, use cd and pwd to get an absolute path, in case a relative one was
31
+ # given.
31
32
mkdir -p " $1 "
32
- DEST=" $( dirname " ${1} /does_not_exist" ) "
33
+ DEST=$( dirname " ${1} /does_not_exist" )
34
+ DEST=$( cd " $DEST " && pwd)
33
35
34
36
cd bazel-bin/pip_pkg.runfiles/tensorflow_probability
35
37
# Pass through remaining arguments (following the first argument, which
You can’t perform that action at this time.
0 commit comments