diff --git a/hyprsolusctl b/hyprsolusctl index 55d0dc6..938241a 100644 --- a/hyprsolusctl +++ b/hyprsolusctl @@ -16,7 +16,7 @@ cache="$HOME/.cache/hyprsolus" check () { >&2 echo "Checking for Hyprland upgrades..." # ensure that Hyprland is even running - if ! pidof hyprland + if ! pidof hyprland >/dev/null then >&2 echo "Could not find Hyprland process. Is it even running?" exit 255 @@ -45,6 +45,8 @@ check () { echo "$origin" | jq -r ".[0]" >"$cache/release-metadata.json" notify-send -a "Hyprsolus" "Hyprland Update Available" \ "A new version of Hyprland is available ($origin_vers)." + [[ -t 0 ]] && echo "A new version of Hyprland is available \ + ($origin_vers)." else >&2 echo "No upgrade available. Ensuring most recent metadata..." [[ -f "$cache/release-metadata.json" ]] && \