Skip to content

Commit d41e8a7

Browse files
authored
Add if condition to cp friesian jar and zip to dist (#4930)
1 parent c2859bd commit d41e8a7

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

scala/make-dist.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,10 @@ cp -r $BASEDIR/dllib/target/bigdl-dllib-*-jar-with-dependencies.jar $DIST_DIR/li
7575
cp -r $BASEDIR/dllib/target/bigdl-dllib-*-python-api.zip $DIST_DIR/lib
7676
cp -r $BASEDIR/orca/target/bigdl-orca-*-jar-with-dependencies.jar $DIST_DIR/lib
7777
cp -r $BASEDIR/orca/target/bigdl-orca-*-python-api.zip $DIST_DIR/lib
78-
cp -r $BASEDIR/friesian/target/bigdl-friesian-*-jar-with-dependencies.jar $DIST_DIR/lib
79-
cp -r $BASEDIR/friesian/target/bigdl-friesian-*-python-api.zip $DIST_DIR/lib
78+
if [ -f $BASEDIR/friesian/target/bigdl-friesian-*-jar-with-dependencies.jar ]; then
79+
cp -r $BASEDIR/friesian/target/bigdl-friesian-*-jar-with-dependencies.jar $DIST_DIR/lib
80+
fi
81+
if [ -f $BASEDIR/friesian/target/bigdl-friesian-*-python-api.zip ]; then
82+
cp -r $BASEDIR/friesian/target/bigdl-friesian-*-python-api.zip $DIST_DIR/lib
83+
fi
8084
cp -r $BASEDIR/dllib/src/main/resources/spark-bigdl.conf $DIST_DIR/conf

0 commit comments

Comments
 (0)