This commit is contained in:
Para Dox
2025-04-14 11:02:10 +07:00
parent fda35b3792
commit 6db2d5df50

View File

@@ -3,8 +3,7 @@
# exit script on any error
set -e
datadir=/datadir
FANTOM_HOME="$datadir"
datadir=${FANTOM_HOME:-/datadir}
existing_file=$(ls "$datadir"/*.g 2>/dev/null | head -n1)
if [ -n "$existing_file" ]; then