disabled log removal, del old build files on startup, shellcheck fixes

This commit is contained in:
2025-09-16 23:05:02 +05:30
parent 46840801af
commit 98fb6893a2
3 changed files with 49 additions and 44 deletions

View File

@@ -1,13 +1,13 @@
#! /bin/bash
echo Running as user: $USER
echo Running as user: "$USER"
if [[ -z ${1} ]]; then
echo Main file not spicified
echo Restart the container with proper arguments
exit 1
else
echo Using main latex file: $1
echo Using main latex file: "$1"
fi
if test -d /app/project; then
@@ -25,5 +25,5 @@ fi
# start auto compile loop
echo Starting AutoLTX...
sleep 3
cd /app/project
ls $1 | entr -n sh -c ./compile.sh
cd /app/project || exit 2
ls "$1" | entr -n sh -c ./compile.sh