File: login

package info (click to toggle)
redsocks 0.5-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, forky, sid, trixie
  • size: 592 kB
  • sloc: ansic: 6,196; python: 505; sh: 185; makefile: 96
file content (13 lines) | stat: -rwxr-xr-x 189 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh
vm=$1
shift
if [ $# = 0 ]; then
    set -- /bin/bash
fi
if [ -t 0 -a -t 1 -a -t 2 ]; then
    tty="--tty"
else
    tty=""
fi
set -x
sudo docker exec --interactive $tty "$vm" "$@"