Updated hyprsolusctl

This commit is contained in:
Ethan Smith-Coss 2024-10-09 18:29:31 +01:00
parent 5a7753b99d
commit 8f8c88da63
Signed by: TheOnePath
GPG Key ID: 1D351CCC6D01F32B

View File

@ -1,5 +1,11 @@
#!/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"
[[ ! -d "$HYPRSOLUS_PATH" ]] && exit 1
@ -84,7 +90,7 @@ update () {
git pull origin main
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/"
systemctl --user daemon-reload