From bc1bf40da91a08f68b749efc0642cc6f465aa6cb Mon Sep 17 00:00:00 2001
From: Manuel Thalmann <m@nuth.ch>
Date: Tue, 4 Apr 2023 01:33:58 +0200
Subject: [PATCH] Add `gnome-shell-extension-installer`

---
 scripts/Common/Config/GnomeExtensions/install.sh     | 12 +++---------
 .../gnome-shell-extension-installer /install.sh      | 10 ++++++++++
 2 files changed, 13 insertions(+), 9 deletions(-)
 create mode 100755 scripts/Common/Software/gnome-shell-extension-installer /install.sh

diff --git a/scripts/Common/Config/GnomeExtensions/install.sh b/scripts/Common/Config/GnomeExtensions/install.sh
index 52eb96fe..efb255ec 100755
--- a/scripts/Common/Config/GnomeExtensions/install.sh
+++ b/scripts/Common/Config/GnomeExtensions/install.sh
@@ -1,15 +1,8 @@
 #!/bin/bash
-commandName=gnome-shell-extension-installer;
 extensionLocation=/usr/share/gnome-shell/extensions;
-contextRoot="$(mktemp -d)";
-pushd "$contextRoot" > /dev/null;
-sudo apt install -y jq;
 
-wget -O "$commandName" "https://github.com/brunelli/gnome-shell-extension-installer/raw/master/gnome-shell-extension-installer";
-sudo install "$commandName" /usr/local/bin;
-
-popd > /dev/null;
-rm -rf "$contextRoot";
+pushd "${BASH_SOURCE%/*}" > /dev/null;
+. "../../gnome-shell-extension-installer/install.sh";
 uuids=();
 
 for id in
@@ -43,3 +36,4 @@ do
 done
 
 killall -SIGQUIT gnome-shell;
+popd > /dev/null;
diff --git a/scripts/Common/Software/gnome-shell-extension-installer /install.sh b/scripts/Common/Software/gnome-shell-extension-installer /install.sh
new file mode 100755
index 00000000..bfbcc06b
--- /dev/null
+++ b/scripts/Common/Software/gnome-shell-extension-installer /install.sh	
@@ -0,0 +1,10 @@
+#!/bin/bash
+contextRoot="$(mktemp -d)";
+commandName="gnome-shell-extension-installer";
+pushd "$contextRoot" > /dev/null;
+
+wget -O "$commandName" https://github.com/brunelli/gnome-shell-extension-installer/raw/master/gnome-shell-extension-installer;
+sudo install "$commandName" /usr/local/bin;
+
+popd > /dev/null;
+rm -rf "$contextRoot";