remove unused script
This commit is contained in:
parent
4e94b4a3bb
commit
5c4135ddb1
1 changed files with 0 additions and 35 deletions
|
|
@ -1,35 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
# Fake rustup for nix-managed Rust toolchains
|
|
||||||
|
|
||||||
case "$1" in
|
|
||||||
run)
|
|
||||||
if [[ "$2" == "stable" ]]; then
|
|
||||||
shift 2
|
|
||||||
if [[ $# -eq 0 ]]; then
|
|
||||||
echo "fake rustup: no command given" >&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
exec "$@"
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
|
|
||||||
toolchain)
|
|
||||||
if [[ "$2" == "list" ]]; then
|
|
||||||
echo "stable (default)"
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
|
|
||||||
target)
|
|
||||||
if [[ "$2" == "list" && "$3" == "--toolchain" && "$4" == "stable" && "$5" == "--installed" ]]; then
|
|
||||||
echo "x86_64-unknown-linux-gnu"
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
echo "fake rustup: the command:" >&2
|
|
||||||
echo " rustup $*" >&2
|
|
||||||
echo "…is not mocked yet" >&2
|
|
||||||
exit 1
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue