Skip to content

Commit

Permalink
fix access to unique dir
Browse files Browse the repository at this point in the history
  • Loading branch information
tmrodrig committed Dec 11, 2024
1 parent b43a473 commit 45f320d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build-packs/legendary/build-pack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
PACK=$1
PACKBASE=../../assets/packs/legendary/$PACK
DATADIR=$PACKBASE/data
UNIQUEDIR=$PACKBASE/unique
BUILDDIR=build/$PACK
PACKDIR=../../packs
GENFILE=generate-$PACK.py
Expand All @@ -11,7 +12,7 @@ PACKTYPE=$(grep "^type=" $PACKBASE/pack.properties| cut -d= -f2)
mkdir -p $BUILDDIR
python3 ./generate-$PACK.py $DATADIR $BUILDDIR
if [ $? -eq 0 ]; then
[ -d unique -a ! -z "$( ls -A $PACKBASE/unique/*.json 2>/dev/null )" ] && cp $PACKBASE/unique/*.json build
[ -d $UNIQUEDIR -a ! -z "$( ls -A $UNIQUEDIR/*.json 2>/dev/null )" ] && cp $UNIQUEDIR/*.json $BUILDDIR
fvtt package pack -n $PACK -v --type System --id sohl -t $PACKTYPE --in $BUILDDIR --out $PACKDIR
else
echo -e "\033[0;31mERROR:\033[0m Build Failed!!"
Expand Down

0 comments on commit 45f320d

Please sign in to comment.