From 1e234aa7369eaa95bf73f745a1db7de8a130307e Mon Sep 17 00:00:00 2001 From: Joshua Potter Date: Sat, 16 Dec 2023 07:58:24 -0700 Subject: [PATCH] Fix subshell usage. --- run_pdflatex.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run_pdflatex.sh b/run_pdflatex.sh index 650c7ea..14880a5 100755 --- a/run_pdflatex.sh +++ b/run_pdflatex.sh @@ -8,7 +8,7 @@ fi SRC_DIR="$1" BUILD_DIR="$2" -cd "$SRC_DIR" || (>&2 echo "Could not cd to $SRC_DIR"; exit 1) +cd "$SRC_DIR" || { >&2 echo "Could not cd to $SRC_DIR"; exit 1; } # We run this command twice to allow any cross-references to resolve correctly. # https://tex.stackexchange.com/questions/41539/does-hyperref-work-between-two-files