summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe <bousset.rudy@gmail.com>2022-05-18 09:36:50 +0200
committerJoe <bousset.rudy@gmail.com>2022-05-18 09:36:50 +0200
commitba573a1c2dcfdeb659b61e769584edf022bb3bde (patch)
treee9147befd38312ae862a94926a1b50c608b22446
parentsetwp udpate (diff)
downloaddotfiles-bsd-ba573a1c2dcfdeb659b61e769584edf022bb3bde.tar.gz
dotfiles-bsd-ba573a1c2dcfdeb659b61e769584edf022bb3bde.tar.bz2
dotfiles-bsd-ba573a1c2dcfdeb659b61e769584edf022bb3bde.tar.xz
dotfiles-bsd-ba573a1c2dcfdeb659b61e769584edf022bb3bde.tar.zst
dotfiles-bsd-ba573a1c2dcfdeb659b61e769584edf022bb3bde.zip
Setwp fix
-rwxr-xr-x.local/bin/setwp2
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);
}