Initial commit
This commit is contained in:
18
ssh_run.sh
Executable file
18
ssh_run.sh
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env bash
|
||||
# Quick SSH script launcher
|
||||
# Usage: ./ssh_run.sh script_name [args...]
|
||||
|
||||
if [ $# -eq 0 ]; then
|
||||
echo "Available SSH scripts:"
|
||||
ls -1 scripts/ssh/*.sh | sed 's/scripts\/ssh\///g' | sed 's/\.sh//g'
|
||||
echo ""
|
||||
echo "Usage: $0 script_name [env_vars...]"
|
||||
echo "Example: $0 recon"
|
||||
echo "Example: HOST=pc-74269 $0 install-thunderbird"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
SCRIPT_NAME="$1"
|
||||
shift
|
||||
|
||||
cd scripts/ssh && ./$SCRIPT_NAME.sh "$@"
|
||||
Reference in New Issue
Block a user