init commit
This commit is contained in:
29
startup.sh
Normal file
29
startup.sh
Normal file
@@ -0,0 +1,29 @@
|
||||
#! /bin/bash
|
||||
|
||||
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
|
||||
fi
|
||||
|
||||
if test -d /app/project; then
|
||||
echo Files in current project:
|
||||
ls -hl /app/project
|
||||
else
|
||||
echo Project folder not mounted
|
||||
echo Restart the container with proper project mount
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# install autoltx to project
|
||||
/app/setupFiles/install.sh
|
||||
|
||||
# start auto compile loop
|
||||
echo Starting AutoLTX...
|
||||
sleep 3
|
||||
cd /app/project
|
||||
ls $1 | entr -n sh -c ./compile.sh
|
||||
Reference in New Issue
Block a user