diff options
-rwxr-xr-x | .local/bin/setwp | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |