aboutsummaryrefslogtreecommitdiff
path: root/sway-de/sway/.local/bin/dnf-needs-restarting
diff options
context:
space:
mode:
Diffstat (limited to 'sway-de/sway/.local/bin/dnf-needs-restarting')
-rwxr-xr-xsway-de/sway/.local/bin/dnf-needs-restarting4
1 files changed, 2 insertions, 2 deletions
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