Last active
July 18, 2020 00:29
-
-
Save trickypr/f67f5009eb2993c2697b6bfe67b4ab0f to your computer and use it in GitHub Desktop.
An initialiser for the linux game console
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Initialiser for the Linux Game Console | |
| # The goal of this script file is to | |
| # download and run the proper installer | |
| # Repo: https://github.com/trickypr/linux-game-console | |
| # | |
| # Run with: curl https://tinyurl.com/linuxgc -L | sh | |
| installedbefore="false" | |
| installationuser=$(whoami) | |
| # Function for installing system apps | |
| # Also a bit of a janky pasword request | |
| install () { | |
| if $installedbefore = "false"; then | |
| echo 'You will be asked for your user password. You will not be asked again' | |
| fi | |
| sudo apt -y install $1 | |
| } | |
| # Initial welcome messages | |
| echo 'Installing as user ' $installationuser | |
| echo 'This script requires privlages and may ask for your user password' | |
| echo | |
| if ! [ -x "$(command -v sudo)" ]; then | |
| echo '"sudo" is required to install this program' | |
| exit 1 | |
| fi | |
| install 'wget unzip' | |
| cd /tmp | |
| wget https://github.com/trickypr/linux-game-console/archive/master.zip -O linuxGameConsoleMaster.zip | |
| unzip ./linuxGameConsoleMaster.zip -d linuxGameConsoleMaster | |
| cd linuxGameConsoleMaster/linux-game-console-master/installer | |
| chmod +x ./installer.sh | |
| ./installer.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment