2
0
Fork 0
mirror of https://github.com/bazel-contrib/bazel-lib synced 2024-12-02 10:15:22 +00:00
bazel-lib/e2e/write_source_files_symlinks.sh

19 lines
405 B
Bash
Executable file

#!/bin/bash
set -e
bazel run //lib/tests/write_source_files:write_symlinks
# Ensure exists
[ -e lib/tests/write_source_files/symlink_test/a/test.txt ]
[ -e lib/tests/write_source_files/symlink_test/b/test.txt ]
# Exit if any symlinks
if [ -L lib/tests/write_source_files/symlink_test/a/test.txt ]; then
exit 1
fi
if [ -L lib/tests/write_source_files/symlink_test/b/test.txt ]; then
exit 1
fi