Skip to content

Commit 838cf0a

Browse files
committed
Minor bug fixes + ability to donate
1 parent 8f6e923 commit 838cf0a

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

set-eGPU.sh

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# set-eGPU.sh
44
# Author(s): Mayank Kumar (@mac_editor, egpu.io / @mayankk2308, github.com)
5-
# Version: 2.0.3
5+
# Version: 2.0.4
66

77
# ----- ENVIRONMENT
88

@@ -24,7 +24,7 @@ BIN_CALL=0
2424
SCRIPT_FILE=""
2525

2626
# Script version
27-
SCRIPT_MAJOR_VER="2" && SCRIPT_MINOR_VER="0" && SCRIPT_PATCH_VER="3"
27+
SCRIPT_MAJOR_VER="2" && SCRIPT_MINOR_VER="0" && SCRIPT_PATCH_VER="4"
2828
SCRIPT_VER="${SCRIPT_MAJOR_VER}.${SCRIPT_MINOR_VER}.${SCRIPT_PATCH_VER}"
2929
IS_HIGH_SIERRA=0
3030
PREF_SET_ERROR=0
@@ -82,7 +82,7 @@ perform_software_update() {
8282
chown "${SUDO_USER}" "${SCRIPT}"
8383
echo -e "Update complete. ${BOLD}Relaunching...${NORMAL}"
8484
sleep 1
85-
"${SCRIPT}"
85+
"${SCRIPT}" "${OPTION}"
8686
exit
8787
}
8888

@@ -422,6 +422,12 @@ uninstall() {
422422

423423
# ----- DRIVER
424424

425+
# Request donation
426+
donate() {
427+
open "https://www.paypal.com/cgi-bin/webscr?cmd=_donations&[email protected]&lc=US&item_name=Development%20of%20Set-eGPU&no_note=0&currency_code=USD&bn=PP-DonationsBF:btn_donate_SM.gif:NonHostedGuest"
428+
echo -e "\nSee your ${BOLD}web browser${NORMAL}.\n"
429+
}
430+
425431
# Ask for main menu
426432
ask_menu() {
427433
read -n1 -p "${BOLD}Back to menu?${NORMAL} [Y/N]: " INPUT
@@ -441,6 +447,7 @@ provide_menu_selection() {
441447
442448
${BOLD}7.${NORMAL} Check eGPU Preferences
443449
${BOLD}8.${NORMAL} Uninstall Set-eGPU
450+
${BOLD}9.${NORMAL} Donate
444451
445452
${BOLD}0.${NORMAL} Quit
446453
"
@@ -476,6 +483,8 @@ process_args() {
476483
check_app_preferences;;
477484
-u|--uninstall|8)
478485
uninstall;;
486+
-d|--donate|9)
487+
donate;;
479488
0)
480489
echo && exit;;
481490
"")

0 commit comments

Comments
 (0)