Browse Source

Test existence of folder before trying to delete it in release.sh script

Leo 9 years ago
parent
commit
10c19be2e0
1 changed files with 4 additions and 2 deletions
  1. 4 2
      release.sh

+ 4 - 2
release.sh

@@ -9,8 +9,10 @@
 git commit -a -m "Version $(cat ./VERSION)"
 git tag -s v$(cat VERSION) -m "Release $(cat VERSION)"
 
-# Cleanup dist directory to put the new archives
-rm -r dist/*
+# Cleanup dist directory to put the new archives, if exists
+if [ -d dist ]; then
+  rm -r dist/*
+fi
 # Binary archives
 ./0install.sh
 # Source code