mirror of
https://github.com/harivansh-afk/nix.git
synced 2026-04-15 18:01:29 +00:00
10 lines
322 B
Bash
Executable file
10 lines
322 B
Bash
Executable file
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
remote="${AGENT_HISTORY_REMOTE:-netty}"
|
|
initial_query="${1:-}"
|
|
script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
|
|
initial_query_q="$(printf '%q' "$initial_query")"
|
|
|
|
ssh -t "$remote" "INITIAL_QUERY=${initial_query_q} bash -s" < "${script_dir}/search-agent-history-remote.sh"
|