From f68b645ff061c7e1dc7e23b3fa67a4c55245963b Mon Sep 17 00:00:00 2001 From: Matt Singleton Date: Fri, 16 Feb 2024 09:48:11 -0600 Subject: lots of changes, mostly to align with the sway-config-fedora package --- sway-de/sway/.local/bin/dnf-needs-restarting | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sway-de/sway/.local/bin') diff --git a/sway-de/sway/.local/bin/dnf-needs-restarting b/sway-de/sway/.local/bin/dnf-needs-restarting index a080649..7fc6542 100755 --- a/sway-de/sway/.local/bin/dnf-needs-restarting +++ b/sway-de/sway/.local/bin/dnf-needs-restarting @@ -1,6 +1,6 @@ #!/bin/bash -set -eo pipefail +set -euo pipefail if command -v dnf > /dev/null; then DNFCMD="dnf" @@ -8,7 +8,7 @@ fi if command -v jq > /dev/null; then JQCMD="jq" fi -if [ -z "$DNFCMD" ] || [ -z "$JQCMD" ]; then +if [ -z "${DNFCMD+x}" ] || [ -z "${JQCMD+x}" ]; then echo "{\"tooltip\": \"requires 'jq' and 'dnf'\", \"text\": \"\"}" exit 1 fi -- cgit v1.2.3