From f09bb8a7ac637c8fbd328e63e9d28013545ac65a Mon Sep 17 00:00:00 2001 From: TNE <2370061-TotallyNotElite@users.noreply.gitlab.com> Date: Sat, 10 Jul 2021 00:02:36 +0000 Subject: [PATCH] Add "remote" flag to /usr/bin/update that will allow users to use the fix it scripts The advantage of this is that the script can be updated remotely, allowing us to deal with new/emerging issues. --- usr/bin/update | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/usr/bin/update b/usr/bin/update index c7ea07b..b9bd0dc 100755 --- a/usr/bin/update +++ b/usr/bin/update @@ -1,4 +1,9 @@ #!/bin/bash + +if [ "$1" == "remote" ]; then + exec sudo bash -c "VERSION=1 . <(wget -qO- https://gitlab.com/garuda-linux/themes-and-settings/settings/garuda-common-settings/-/snippets/2147440/raw/main/remote-update) \"$2\"" +fi + # Check for AUR helper if [ -x /usr/bin/paru ]; then upd_cmd="paru -Su"