Fix R wrapper recursion
This commit is contained in:
18
Scripts/r.sh
18
Scripts/r.sh
@@ -51,8 +51,10 @@ if is_arch_family; then
|
|||||||
echo -e "${GREEN} SUCCESS:${NC} R installed via Pacman."
|
echo -e "${GREEN} SUCCESS:${NC} R installed via Pacman."
|
||||||
|
|
||||||
R_BIN="R"
|
R_BIN="R"
|
||||||
write_r_wrapper "R" 'exec "$(command -v R)"'
|
SYSTEM_R_BIN="$(command -v R)"
|
||||||
write_r_wrapper "Rscript" 'exec "$(command -v Rscript)"'
|
SYSTEM_RSCRIPT_BIN="$(command -v Rscript)"
|
||||||
|
write_r_wrapper "R" "exec \"$SYSTEM_R_BIN\""
|
||||||
|
write_r_wrapper "Rscript" "exec \"$SYSTEM_RSCRIPT_BIN\""
|
||||||
|
|
||||||
elif is_debian_family; then
|
elif is_debian_family; then
|
||||||
|
|
||||||
@@ -115,8 +117,10 @@ elif is_fedora_family; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
R_BIN="R"
|
R_BIN="R"
|
||||||
write_r_wrapper "R" 'exec "$(command -v R)"'
|
SYSTEM_R_BIN="$(command -v R)"
|
||||||
write_r_wrapper "Rscript" 'exec "$(command -v Rscript)"'
|
SYSTEM_RSCRIPT_BIN="$(command -v Rscript)"
|
||||||
|
write_r_wrapper "R" "exec \"$SYSTEM_R_BIN\""
|
||||||
|
write_r_wrapper "Rscript" "exec \"$SYSTEM_RSCRIPT_BIN\""
|
||||||
|
|
||||||
elif is_macos; then
|
elif is_macos; then
|
||||||
|
|
||||||
@@ -128,8 +132,10 @@ elif is_macos; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
R_BIN="R"
|
R_BIN="R"
|
||||||
write_r_wrapper "R" 'exec "$(command -v R)"'
|
SYSTEM_R_BIN="$(command -v R)"
|
||||||
write_r_wrapper "Rscript" 'exec "$(command -v Rscript)"'
|
SYSTEM_RSCRIPT_BIN="$(command -v Rscript)"
|
||||||
|
write_r_wrapper "R" "exec \"$SYSTEM_R_BIN\""
|
||||||
|
write_r_wrapper "Rscript" "exec \"$SYSTEM_RSCRIPT_BIN\""
|
||||||
|
|
||||||
else
|
else
|
||||||
echo -e "${RED} ERROR:${NC} Unsupported OS: $OS"
|
echo -e "${RED} ERROR:${NC} Unsupported OS: $OS"
|
||||||
|
|||||||
Reference in New Issue
Block a user