Skip to content

Instantly share code, notes, and snippets.

@BoQsc
Created July 17, 2019 15:52
Show Gist options
  • Save BoQsc/4b55b116764177bcd74c7d4ab401bf65 to your computer and use it in GitHub Desktop.
Save BoQsc/4b55b116764177bcd74c7d4ab401bf65 to your computer and use it in GitHub Desktop.
#!/bin/bash
#
#
if [ "$USER" = "root" ];
then
# Install Latest Java Runtime From OpenJDK
yes | aptdcon --hide-terminal --install "default-jre"
else
exec sudo bash "$0" "$@";
fi
## /lib/firefox/browser/extensions
## firefox --headless
## chrome-gnome-shell@gnome.org.xpi
## unzip
## -p
## https://stackoverflow.com/questions/39651946/find-the-value-of-key-from-json/39653436#39653436
## unzip -p "gnome_shell_integration-10.1-an+fx-linux.xpi" "manifest.json" | grep -Po '"id": *\K"[^"]*"'
## wget --output-document="gnome_shell_integration-an+fx-linuz.xpi" "https://addons.mozilla.org/firefox/downloads/latest/gnome-shell-integration/addon-898030-latest.xpi"
## information=$(unzip -p "gnome_shell_integration-an+fx-linuz.xpi" "manifest.json" | grep -Po '"id": *\K"[^"]*"')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment