change ls to find, pass mainfile name to latex
All checks were successful
/ Build Container (push) Successful in 57m39s

This commit is contained in:
2025-09-18 07:37:17 +05:30
parent 8df1c9a242
commit 2bea58ed38
4 changed files with 17 additions and 16 deletions

View File

@@ -1,6 +1,6 @@
#! /bin/bash
echo Running as user: "$USER"
echo Running as user: $USER
if [[ -z ${1} ]]; then
echo Main file not spicified
@@ -26,4 +26,4 @@ fi
echo Starting AutoLTX...
sleep 3
cd /app/project || exit 2
ls "$1" | entr -n sh -c ./compile.sh
find ./* -name "*.tex" | entr -n sh -c "./compile.sh $1"