Fix wrong parameter for migrate command

This commit is contained in:
Tobias Reisinger 2025-06-24 20:42:23 +02:00
parent 21c1e3fbb3
commit 93ebbbd5d2
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE

View file

@ -47,7 +47,7 @@ _ts_control_fetch() {
}
_ts_control_migrate() {
target=$(_ts_control_get_entity "channel" "$2")
target=$(_ts_control_get_entity "channel" "$1")
current_channel=$(teamspeak-query-lib info | grep "Channel: " | sed 's/Channel: //')
_ts_control_move_self "$target"
teamspeak-query-lib fetch "--strict-channel" "--channel" "$current_channel"