Updated install.sh

Fixed /home/ethan to use logname.
This commit is contained in:
Ethan Smith-Coss 2024-10-09 18:11:21 +01:00
parent 8e8ba68bc7
commit 090f4dc78c
Signed by: TheOnePath
GPG Key ID: 1D351CCC6D01F32B

View File

@ -1,10 +1,11 @@
#!/usr/bin/env bash #!/usr/bin/env bash
user="$(logname)"
home="/home/$user"
HYPRSOLUS_PATH="/usr/src/hyprsolus" HYPRSOLUS_PATH="/usr/src/hyprsolus"
HYPRSOLUSCTL_PATH="/usr/local/bin" HYPRSOLUSCTL_PATH="/usr/local/bin"
HYPRSOLUS_SYSTEMD="$HOME/.config/systemd/user" HYPRSOLUS_SYSTEMD="$home/.config/systemd/user"
user="$(logname)"
if [[ $(id -u) -ne 0 ]] if [[ $(id -u) -ne 0 ]]
then then