summary refs log tree commit diff
path: root/ripple/tools/fakefakeroot/fakefakeroot.sh
blob: 0f6ca7c56696dcff77795dcaa81b1d02032be0cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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 "$@"