summaryrefslogtreecommitdiffstats
path: root/debian/tests/common/asuser
blob: 291b40a95e0a1407ee8584c72d8c28d2b25c66e5 (plain)
1
2
3
4
5
6
7
#!/bin/bash

set -e

echo "${1:-}" | sudo -u "${2:-root}" --stdin id -u > "${3:-stdout}" 2> "${4:-stderr}"