Sfoglia il codice sorgente

[Improvement-14080][script] cleanup dist directory at the beginning of check-LICENSE.sh (#14081)

Rick Cheng 1 anno fa
parent
commit
0ab2447d58
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 3 0
      tools/dependencies/check-LICENSE.sh

+ 3 - 0
tools/dependencies/check-LICENSE.sh

@@ -17,6 +17,9 @@
 # limitations under the License.
 #
 
+if [ -d "dist" ];then
+rm -rf dist
+fi
 mkdir dist || true
 
 tar -zxf dolphinscheduler-dist/target/apache-dolphinscheduler*-bin.tar.gz --strip=1 -C dist