From 90a0ed4edddb1db705b6ecc3e890c19b2e8d76ab Mon Sep 17 00:00:00 2001 From: trinity-1686a Date: Sun, 9 Feb 2025 23:48:31 +0100 Subject: [PATCH] wake up only on server per call --- wol.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/wol.sh b/wol.sh index 5ebe367..b0b628c 100644 --- a/wol.sh +++ b/wol.sh @@ -8,8 +8,6 @@ TARGETS=( "ortie (prod): 00:23:24:b0:01:b9" ) -MACS=$(gum choose --no-limit "${TARGETS[@]}" | sed 's/^[^:]*: *//') - -[ -z "$MACS" ] && echo You must select at least one server to wake up && exit 1 +MACS=$(gum choose -- "${TARGETS[@]}" | sed 's/^[^:]*: *//') wakeonlan -- $MACS