Files
mgmt/test/shell/embedded-provisioner.sh
Karpfen 7e8ced534f misc: Use /usr/bin/env for a more generic shebang
Use path based SHELL in Makefiles. It was suggested that this is a
better solution for make for cases when there is no /usr/bin/env.

See: https://github.com/purpleidea/mgmt/pull/694#discussion_r1015596204
2025-03-22 14:53:21 -04:00

20 lines
346 B
Bash
Executable File

#!/usr/bin/env -S bash -e
. "$(dirname "$0")/../util.sh"
# misc bash functions, eg: repeat "#" 42
function repeat() {
for ((i=0; i<$2; ++i)); do echo -n "$1"; done
echo
}
set -x
# run unification with a dummy password
$TIMEOUT "$MGMT" provisioner --only-unify --password $(repeat "#" 106) &
pid=$!
wait $pid # get exit status
e=$?
exit $e