blob: fcbebc1fe81c582dcd5be8bbc44f3a1148712041 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#!/bin/sh
if ! sudo -n true; then exec sudo -E -- "${0}" "${@}"; fi
script_path=$(cd "$(dirname "${0}")" && pwd)
script_basename=$(basename "${0}")
tested_binary=$(printf '%s' "${script_basename}" | sed 's/test-//g;s/.sh//g')
"${script_path}/../${tested_binary}"
|