utils: use rmdir instead of rm to remove empty dirs
authorSebastian Pop <spop@codeaurora.org>
Sun, 18 Nov 2012 04:34:31 +0000 (04:34 +0000)
committerSebastian Pop <spop@codeaurora.org>
Sun, 18 Nov 2012 04:34:31 +0000 (04:34 +0000)
as suggested by Sven Verdoolaege <skimo-polly@kotnet.org>

llvm-svn: 168279

polly/utils/checkout_cloog.sh

index 3bf06a9..2ebb1e1 100755 (executable)
@@ -67,9 +67,9 @@ then
   echo :: Performing initial checkout
   # Remove the existing CLooG and ISL dirs to avoid crashing older git versions.
   cd ${CLOOG_DIR}/..
-  run rm -rf ${CLOOG_DIR}
+  run rmdir "${CLOOG_DIR}"
   run git clone http://repo.or.cz/r/cloog.git ${CLOOG_DIR}
-  run rm -rf ${ISL_DIR}
+  run rmdir "${ISL_DIR}"
   run git clone http://repo.or.cz/r/isl.git ${ISL_DIR}
 fi