

So in summary: This script will take down your username, run Logitech's uninstaller, and then delete four folders. "Force" means "don't ask me for permission every time you're not sure, just do it." (You can omit the f so it's just rm -r, and it'll be a little safer, but might bother you for permission a few times. I tried to uninstall, but it says that it is still running in the background. Several guides to uninstall Logitech G HUB from Mac Traditional option remove the application to the Trash Close the application on the Mac. Sudo rm -rf -> rm means "remove," as in "delete." -rf means "recursive and force." "Recursive" means "delete all of the contents, too" and is needed for deleting folders. I have Mac OS Mojave Version 10.14.4 and LG Hub will not start when I click it.

Presumably runs Logitech's uninstall procedure. Sudo /./lghub_updater -uninstall -> Give the uninstall command to the program called lghub_updater. That means "replace this part with the variable user" Click Complete Uninstall in Step 2, and click Yes to confirm removal. Select Logitech Gaming Software 8.50.133 on the interface and click Run Analysis button to scan Logitech Gaming Software 8.50.133. You'll notice $user in one of the file paths later. Launch Osx Uninstaller in the Launchpad after quiting Logitech Gaming Software 8.50.133 in the Dock. User="put your username here" -> That sets a variable called user to use later. I didn't seem to need it, though, so I didn't run it. I think it has something to do with how the script will handle errors (OP halp). Set -euo pipefail -> EDIT: OP explains below! I don't actually know what this does, lol. #!/bin/bash -> This instruction just says "I'm a shell script, run me with bash please" It's healthy to be skeptical about running code you found randomly on the internet, if you don't know what it does! So here's a brief overview:
