From 0a01d8c761d5027bf6fe8ee812e70e3d8636c8b8 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Thu, 30 Mar 2023 19:45:16 +0300 Subject: [.a] Replaced double brackets with test --- .a/dunst-toggler-applet.sh | 4 ++-- .a/toggle-repo.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.a/dunst-toggler-applet.sh b/.a/dunst-toggler-applet.sh index e9f253e..a8ef7ae 100755 --- a/.a/dunst-toggler-applet.sh +++ b/.a/dunst-toggler-applet.sh @@ -4,10 +4,10 @@ function update { while :; do curr_status=$(dunstctl is-paused) - if [[ "$curr_status" != "$prev_status" ]]; then + if [ "$curr_status" != "$prev_status" ]; then prev_status=$curr_status - if [[ "$curr_status" == "true" ]]; then + if [ "$curr_status" == "true" ]; then echo icon:/usr/share/icons/tabler-icon-bell-off.png echo tooltip:Notifications OFF else diff --git a/.a/toggle-repo.sh b/.a/toggle-repo.sh index ffbcb57..638bde8 100755 --- a/.a/toggle-repo.sh +++ b/.a/toggle-repo.sh @@ -1,6 +1,6 @@ #!/bin/bash -if [[ -d ".git" ]]; then +if [ -d ".git" ]; then sudo mv .git .git.disabled else sudo mv .git.disabled .git -- cgit v1.2.3