Skip to content

Commit

Permalink
add symlink existence check
Browse files Browse the repository at this point in the history
  • Loading branch information
mratsim committed Oct 31, 2019
1 parent d0a62eb commit 3fddac2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/setup_official_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,9 @@ cached_test_vectors() {
}

# Symlink tarballs if it doesn't already exist
ln -s "$(pwd -P)/${CACHE_DIR}/tarballs" "${SUBREPO_DIR}"
[[ -d "${SUBREPO_DIR}/tarballs" ]] || {
ln -s "$(pwd -P)/${CACHE_DIR}/tarballs" "${SUBREPO_DIR}"
}

# Now uncompress
pushd "${SUBREPO_DIR}"
Expand Down

0 comments on commit 3fddac2

Please sign in to comment.