Commit c04ccb2e authored by Jefferson F. Paril's avatar Jefferson F. Paril 😁

fixing test if libgdal-dev exists

parent 560e1d8c
......@@ -143,9 +143,9 @@ esac
### CHECK FOR REQUIRED DEPENDENCIES: ###
### ###
########################################
# check for python3, python3-pip and r-base in Linux (or windows subsytem for linux) and Mac
# check for python3, python3-pip, r-base, and libgdal-dev in Linux (or windows subsytem for linux) and Mac
if [ $machine = Linux ]; then
for p in python3 pip R parallel libgdal-dev; do
for p in python3 pip R parallel; do
if hash $p &>/dev/null; then
echo "$p exists!"
else
......@@ -156,6 +156,12 @@ if [ $machine = Linux ]; then
fi
fi
done
if [ $(apt list --installed | grep libgdal-dev | wc -l) -gt 0 ]
then
echo "$p exists!"
else
sudo apt install libgdal-dev
fi
# elif [ $machine = Mac ]; then
# #install brew (press enter and allow)
# /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
......
args = commandArgs(trailingOnly=TRUE)
PKG=args[1]; if(!(require(PKG, character.only=T))) {install.packages(PKG, dep=T, repos='http://cran.us.r-project.org')}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment