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:
parent
88daa38bdd
commit
f09bb8a7ac
1 changed files with 5 additions and 0 deletions
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue