From ba573a1c2dcfdeb659b61e769584edf022bb3bde Mon Sep 17 00:00:00 2001 From: Joe Date: Wed, 18 May 2022 09:36:50 +0200 Subject: Setwp fix --- .local/bin/setwp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.local/bin') diff --git a/.local/bin/setwp b/.local/bin/setwp index 6686e67..a60b2c9 100755 --- a/.local/bin/setwp +++ b/.local/bin/setwp @@ -88,7 +88,7 @@ sub main $wp = choose_wp(get_pool_files()); $ret = set_wp($wp); } - if (@ARGV != 0 && $ARGV[0] eq "-nw") { + if (@ARGV == 0 || (@ARGV != 0 && $ARGV[0] ne "-nw")) { notify() if ($ret == 0); notify_error() if ($ret != 0); } -- cgit v1.2.3