Skip to content

Commit d61762e

Browse files
committed
try and fix this shit idk
1 parent 4dcec42 commit d61762e

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.cargo/rustc-wrapper.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# Redirect all output to log file except for the final exec'd command
44
LOG_FILE="/tmp/patch-log.txt"
5-
exec 3>&1 4>&2
5+
exec 9>&1 10>&2
66
exec >>"$LOG_FILE" 2>&1
77

88
set -eu
@@ -14,7 +14,7 @@ TARGET_PATCHED_DIR="$SCRIPT_DIR/target/patched-crates"
1414

1515
# --- No patching needed - run original args ---
1616
if [ -z "${CARGO_PKG_NAME:-}" ] || [ -z "${CARGO_MANIFEST_DIR:-}" ]; then
17-
exec 1>&3 2>&4
17+
exec 1>&9 2>&10
1818
exec "$@"
1919
fi
2020

@@ -49,9 +49,9 @@ if [ -d "$PATCH_DIR" ]; then
4949
new_args+=("${arg//$CARGO_MANIFEST_DIR/$PATCHED_SRC}")
5050
done
5151

52-
exec 1>&3 2>&4
52+
exec 1>&9 2>&10
5353
exec "${new_args[@]}"
5454
else
55-
exec 1>&3 2>&4
55+
exec 1>&9 2>&10
5656
exec "$@"
5757
fi

0 commit comments

Comments
 (0)