diff options
Diffstat (limited to 'ripple/tools/fakefakeroot/fakefakeroot.sh')
-rwxr-xr-x | ripple/tools/fakefakeroot/fakefakeroot.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/ripple/tools/fakefakeroot/fakefakeroot.sh b/ripple/tools/fakefakeroot/fakefakeroot.sh new file mode 100755 index 0000000..0f6ca7c --- /dev/null +++ b/ripple/tools/fakefakeroot/fakefakeroot.sh @@ -0,0 +1,17 @@ +#! /bin/bash +# SPDX-FileCopyrightText: edef <edef@unfathomable.blue> +# SPDX-License-Identifier: OSL-3.0 + +if [ "$*" = "-v" ]; then + echo fakefakeroot + exit 0 +fi + +if [ "$1" != "--" ]; then + echo "usage: $0 -- PROGRAM [ARG]..." >&2 + exit 255 +fi + +export FAKEROOTKEY="double-fake-root" + +shift; exec "$@" |