Updated hyprsolusctl
This commit is contained in:
parent
5a7753b99d
commit
8f8c88da63
|
|
@ -1,5 +1,11 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
if [[ $(id -u) -eq 0 ]]
|
||||||
|
then
|
||||||
|
echo "Please don't run script with root privilages."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
HYPRSOLUS_PATH="/usr/src/hyprsolus"
|
HYPRSOLUS_PATH="/usr/src/hyprsolus"
|
||||||
[[ ! -d "$HYPRSOLUS_PATH" ]] && exit 1
|
[[ ! -d "$HYPRSOLUS_PATH" ]] && exit 1
|
||||||
|
|
||||||
|
|
@ -84,7 +90,7 @@ update () {
|
||||||
git pull origin main
|
git pull origin main
|
||||||
|
|
||||||
echo "(hyprsolus) Updating additional scripts if needed."
|
echo "(hyprsolus) Updating additional scripts if needed."
|
||||||
sudo cp -u "${HYPRSOLUS_PATH}/hyprsolusctl" "$HYPRSOLUSCTL_PATH"
|
sudo cp -u "${HYPRSOLUS_PATH}/hyprsolusctl" "/usr/local/bin"
|
||||||
sudo cp -ru "${HYPRSOLUS_PATH}/systemd" "$HOME/.config/systemd/"
|
sudo cp -ru "${HYPRSOLUS_PATH}/systemd" "$HOME/.config/systemd/"
|
||||||
systemctl --user daemon-reload
|
systemctl --user daemon-reload
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user