File: mock-ssh-askpass-multistep

package info (click to toggle)
libssh 0.12.0-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 7,804 kB
  • sloc: ansic: 124,224; cpp: 421; xml: 226; sh: 206; makefile: 26; python: 9
file content (16 lines) | stat: -rwxr-xr-x 274 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh -eu
# Smart askpass that returns different values based on the prompt
case "$1" in
    *Password*)
        echo "foobar"
        ;;
    *Token*)
        echo "5"
        ;;
    *"So Close"*)
        echo "5"
        ;;
    *)
        echo "foobar"
        ;;
esac