Kaynağa Gözat

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

Rick Cheng 1 yıl önce
ebeveyn
işleme
0ab2447d58
1 değiştirilmiş dosya ile 3 ekleme ve 0 silme
  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