From d1f535654919e364790ad388a7b36d2b7cfcaa67 Mon Sep 17 00:00:00 2001 From: Nicholas George Date: Mon, 13 Jan 2020 22:40:07 +0000 Subject: [PATCH] Allowed a Wineprefix to be specified as first argument --- install-worlds.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/install-worlds.sh b/install-worlds.sh index c5bbc7c..bbf3a9a 100644 --- a/install-worlds.sh +++ b/install-worlds.sh @@ -1,11 +1,14 @@ #!/bin/bash -export WINEPREFIX=$HOME/.local/share/wineprefixes/worlds +export WINEPREFIX=$1 export WINEARCH=win32 export DIR="$WINEPREFIX/drive_c/Program Files/Worlds/WorldsPlayer by Worlds.com" export DIREXE="$DIR/run.exe" prefix () { echo "Settings up the Wine prefix..." + if [ -z "$WINEPREFIX" ]; then + WINEPREFIX=$HOME/.local/share/wineprefixes/worlds + fi wine init if ! [ -x "$(command -v winetricks)" ]; then echo "Error: 'winetricks' not found! Please add it to your path or install it via your package manager."