Skip to content

Commit 7041239

Browse files
committed
Remove symlinks within custom.sh
1 parent 902f6e5 commit 7041239

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.circleci/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ variables:
5454
name: Testing Conda recipes
5555
shell: /bin/bash
5656
command: |
57+
export PATH=/opt/conda/bin:$PATH
5758
pipenv run python testing/collect_tests.py 'chapter-11/recipe-04' &&
5859
pipenv run python testing/collect_tests.py 'chapter-11/recipe-05'
5960

chapter-11/recipe-02/cxx-example/custom.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ if [ $# -eq 0 ] ; then
77
exit 1
88
fi
99

10+
# Remove symlinks
11+
find "$PWD" -type l -exec sh -c '
12+
file=$(basename "$1")
13+
directory=${1%/*}
14+
(cd "$directory" && cp --remove-destination "$(readlink "$file")" "$file")' sh {} ';'
15+
1016
# build directory is provided by the main script
1117
build_directory="$1"
1218
mkdir -p "${build_directory}"

0 commit comments

Comments
 (0)