Skip to content

Commit 08144af

Browse files
committed
Make checkREnvironment.sh truly conditional
- Use conditional filename: {% if r_data_science %}checkREnvironment.sh{% endif %}.jinja - File is only generated when r_data_science is selected - No empty files created for non-R projects
1 parent eba2d26 commit 08144af

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

template/.devcontainer/checkREnvironment.sh.jinja renamed to template/.devcontainer/{% if r_data_science %}checkREnvironment.sh{% endif %}.jinja

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{% if r_data_science %}#!/usr/bin/env bash
1+
#!/usr/bin/env bash
22
set -euo pipefail
33

44
# R Environment Check Script
@@ -51,4 +51,3 @@ else
5151
fi
5252

5353
echo "🎉 R environment check completed successfully"
54-
{% endif %}

0 commit comments

Comments
 (0)