File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -176,10 +176,14 @@ if [[ "$1" == "package" ]]; then
176176 # Source and binary tarballs
177177 echo " Packaging release source tarballs"
178178 cp -r spark spark-$SPARK_VERSION
179- # For source release, exclude copy of binary license/notice
180- rm spark-$SPARK_VERSION /LICENSE-binary
181- rm spark-$SPARK_VERSION /NOTICE-binary
182- rm -r spark-$SPARK_VERSION /licenses-binary
179+
180+ # For source release in v2.4+, exclude copy of binary license/notice
181+ if [[ $SPARK_VERSION > " 2.4" ]]; then
182+ rm spark-$SPARK_VERSION /LICENSE-binary
183+ rm spark-$SPARK_VERSION /NOTICE-binary
184+ rm -r spark-$SPARK_VERSION /licenses-binary
185+ fi
186+
183187 tar cvzf spark-$SPARK_VERSION .tgz spark-$SPARK_VERSION
184188 echo $GPG_PASSPHRASE | $GPG --passphrase-fd 0 --armour --output spark-$SPARK_VERSION .tgz.asc \
185189 --detach-sig spark-$SPARK_VERSION .tgz
You can’t perform that action at this time.
0 commit comments