Updated install.sh

Added check to mkdir if /usr/local/bin does not already exist.
This commit is contained in:
Ethan Smith-Coss 2024-11-17 11:30:12 +00:00
parent 29d87242e4
commit efe62cff3d
Signed by: TheOnePath
GPG Key ID: 1D351CCC6D01F32B

View File

@ -29,6 +29,7 @@ exit_code=$?
chown -R "$user:$user" "$HYPRSOLUS_PATH"
echo "(hyprsolus) Moving additional scripts to system."
[[ ! -d "$HYPRSOLUSCTL_PATH" ]] && mkdir -p "$HYPRSOLUSCTL_PATH"
cp -u "${HYPRSOLUS_PATH}/hyprsolusctl" "$HYPRSOLUSCTL_PATH"
# Make the file executable
chmod +x "${HYPRSOLUS_PATH}/hyprsolusctl"