-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
It will clean up the _diagrams_ directory removing the old `*.png` files.
- Loading branch information
1 parent
e5df1b4
commit 38e69c8
Showing
4 changed files
with
15 additions
and
1 deletion.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,17 @@ | ||
#!/bin/sh | ||
|
||
find diagrams/ -name '*.plantuml' -exec plantuml -v {} \; | ||
diagramsPath="diagrams" | ||
|
||
echo 'AVERTENCIA!!!' | ||
echo | ||
echo "Todos los archivos '*.png' dentro de \"$diagramsPath\" serán borrados." | ||
echo "Se regeneraran a partir de los archivos '*.plantuml'." | ||
echo | ||
|
||
read -t 3 -n 1 -p "Desea continuar (y/N)? " answer | ||
[ -z "$answer" ] && answer="n" | ||
|
||
if [ "$answer" == "y" ] | ||
then | ||
find $diagramsPath -name '*.plantuml' -exec plantuml -v {} \; | ||
fi |