wake up only on server per call

This commit is contained in:
trinity-1686a 2025-02-09 23:48:31 +01:00
parent 4a60501de5
commit 90a0ed4edd

4
wol.sh
View file

@ -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