1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
#!/bin/sh set -e args="$@" while [ $# -gt 0 ]; do opt="$1" shift case "$opt" in -dumpmachine) echo x86_64-linux-gnu exit 0 esac done # Otherwise fail hard. echo "$0: unsupported command ($args) in mock wrapper" exit 1