mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
13 lines
246 B
Plaintext
13 lines
246 B
Plaintext
|
#!/bin/bash
|
||
|
# "Fake" su command
|
||
|
#
|
||
|
# Just executes the command without changing effective uid. Used in integration
|
||
|
# tests.
|
||
|
while true; do
|
||
|
shift
|
||
|
test "x$1" == "x-c" && break
|
||
|
test "x$1" == "x" && break
|
||
|
done
|
||
|
shift
|
||
|
exec /bin/bash -c "$@"
|