* Rename applications directory to apps. * Apps paid (#65) * add zork and adventure * added error checking to game scripts * add userland logo for IF games for now * add firefox as an app * dont forget apt update * fix package name for firefox-esr * fix small issues with how apps run/exit * add exit to end of adventure script * dont use octave gui and do use gnuplot * install the recommended packages for octave * install all recommended packages, but only for gnuplot * small fix to not install gnuplot twice * switch to gnuplot-x11 * allow the gui to be used when appropriate for octave * add trailing exit * first pass at adding R * first pass at gnuplot as an app * add gnuplot as an app
19 lines
517 B
Bash
19 lines
517 B
Bash
#! /bin/bash
|
|
|
|
SCRIPT_PATH=$(realpath ${BASH_SOURCE})
|
|
sudo rm -f $SCRIPT_PATH
|
|
|
|
if [ ! -f /usr/bin/gnuplot ]; then
|
|
sudo apt-get update
|
|
sudo DEBIAN_FRONTEND=noninteractive apt-get -y install gnuplot-x11
|
|
if [[ $? != 0 ]]; then
|
|
read -rsp $'An error occurred installing packages, please try again and if it persists provide this log to the developer.\nPress any key to close...\n' -n1 key
|
|
fi
|
|
fi
|
|
if [[ -z "${DISPLAY}" ]]; then
|
|
GNUTERM=dumb /usr/bin/gnuplot
|
|
else
|
|
GNUTERM=x11 /usr/bin/gnuplot
|
|
fi
|
|
exit
|