Updated get_installer.
This commit is contained in:
1 parent
52cb38964d
commit
372bc878d4
1 file changed
+10
-4
@@ -111,7 +111,9 @@ check_dependencies() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
open_url() {
|
open_url() {
|
||||||
GAME="$*" startx
|
local targetUrl="$1"
|
||||||
|
|
||||||
|
env GAME="$targetUrl" startx
|
||||||
}
|
}
|
||||||
|
|
||||||
wait_for_enter() {
|
wait_for_enter() {
|
||||||
@@ -147,11 +149,15 @@ get_installer() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -n "$downloadUrl" ]]; then
|
if [[ -n "$downloadUrl" ]]; then
|
||||||
instructions="Opening game download page, press enter to continue.
|
instructions="Opening game download page.
|
||||||
When the download finishes, please close your browser window to continue. You can do this by pressing control+w."
|
When the download finishes, please close your browser window to continue. You can do this by pressing control+w.
|
||||||
|
Press enter to continue."
|
||||||
speak "$instructions" 1
|
speak "$instructions" 1
|
||||||
wait_for_enter "Press enter to continue."
|
wait_for_enter "Press enter to continue."
|
||||||
open_url "$downloadUrl"
|
if ! open_url "$downloadUrl"; then
|
||||||
|
ui_msgbox "Game Installer" "Game Installer" "Could not open the browser for ${installerName}. Check the install log for details."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
if collect_installer_file "$installerName"; then
|
if collect_installer_file "$installerName"; then
|
||||||
return 0
|
return 0
|
||||||
|
|||||||
Reference in new issue
Block a user