Files
OpenJarvis/tests/install/bash/stubs/curl
T

8 lines
228 B
Bash
Executable File

#!/usr/bin/env bash
# Stub for curl — records args, returns canned output.
echo "$@" >> "${CURL_STUB_LOG:-/dev/null}"
if [[ "${CURL_STUB_OUTPUT_FILE:-}" ]]; then
cat "$CURL_STUB_OUTPUT_FILE"
fi
exit "${CURL_STUB_EXIT:-0}"