1
0
Fork 0
mirror of synced 2024-11-22 18:15:37 -05:00

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.
This commit is contained in:
TNE 2021-07-10 00:02:36 +00:00
parent 88daa38bdd
commit f09bb8a7ac

View file

@ -1,4 +1,9 @@
#!/bin/bash #!/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 # Check for AUR helper
if [ -x /usr/bin/paru ]; then if [ -x /usr/bin/paru ]; then
upd_cmd="paru -Su" upd_cmd="paru -Su"