From b483c295c082207dd7e8063949c2ff5b1ed14daf Mon Sep 17 00:00:00 2001 From: Matt Singleton Date: Sun, 2 Apr 2023 14:21:49 -0500 Subject: new stow-based configuration management for graphical environment --- bin/linux/dnf-needs-restarting | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100755 bin/linux/dnf-needs-restarting (limited to 'bin/linux/dnf-needs-restarting') diff --git a/bin/linux/dnf-needs-restarting b/bin/linux/dnf-needs-restarting deleted file mode 100755 index a080649..0000000 --- a/bin/linux/dnf-needs-restarting +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/bash - -set -eo pipefail - -if command -v dnf > /dev/null; then - DNFCMD="dnf" -fi -if command -v jq > /dev/null; then - JQCMD="jq" -fi -if [ -z "$DNFCMD" ] || [ -z "$JQCMD" ]; then - echo "{\"tooltip\": \"requires 'jq' and 'dnf'\", \"text\": \"\"}" - exit 1 -fi - -set -u - -if ! output="$($DNFCMD needs-restarting -r)"; then - icon="" -else - icon="" -fi - -# this is a literal expression for `jq` -# shellcheck disable=SC2016 -$JQCMD --unbuffered -n -c '{tooltip: $ARGS.positional[0], text: $ARGS.positional[1]}' --args "$output" "$icon" -- cgit v1.2.3