Skip to content

Commit 4079b45

Browse files
authored
[Bugfix:Autograding] Copy only necessary files (#3)
* Fix rsync issue * Fix rsync command
1 parent a04e1a5 commit 4079b45

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

install_analysistoolsts.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ echo -e "Installing AnalysisToolsTS... "
2121
mkdir -p "${INSTALLATION_DIR}"
2222

2323
# Copy cloned files to AnalysisToolsTS directory
24-
rsync -rtz "${REPO_DIR}" "${INSTALLATION_DIR}"
24+
if [ $# -eq 0 ]; then
25+
rsync -rtz "${REPO_DIR}/src" "${REPO_DIR}/CMakeLists.txt" "${INSTALLATION_DIR}"
26+
fi
2527

2628
mkdir -p "${INCLUDE_DIR}"
2729

@@ -91,4 +93,4 @@ if [ $# -eq 0 ]; then
9193
chmod -R 755 "${INSTALLATION_DIR}"
9294
fi
9395

94-
echo "Done setting up AnalysisToolsTS"
96+
echo "Done setting up AnalysisToolsTS"

0 commit comments

Comments
 (0)