Skip to content

Commit 17591ff

Browse files
committed
move the launch_script variable definition in which_r script
1 parent 5bc250b commit 17591ff

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/which_r.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
which_r() {
44
# Specify the parent directory
55
parent_dir="$WORK_DIR/build"
6-
launch_script="$WORK_DIR/scripts/launch_r.sh"
76

87
# Path to the settings.json file
98
settings_file_path=$WORK_DIR/.vscode/settings.json
@@ -60,6 +59,9 @@ which_r() {
6059
selected_version="/usr/bin/R"
6160
fi
6261

62+
# Define launch script path here where it's actually used
63+
launch_script="$WORK_DIR/scripts/launch_r.sh"
64+
6365
# Update launch_r.sh to call the selected R binary
6466
if [ -f "$launch_script" ]; then
6567
sed -i "s|^exec .*/R|exec $selected_version|" "$launch_script"

0 commit comments

Comments
 (0)