Files

6 lines
209 B
Bash
Executable File

#!/usr/bin/env bash
# Fake mountpoint: succeeds only for paths listed (colon-separated) in FAKE_MOUNTPOINTS.
[[ "$1" == "-q" ]] && shift
[[ "$1" == "--" ]] && shift
[[ ":${FAKE_MOUNTPOINTS:-}:" == *":$1:"* ]]