add done status for deleting/creating public/src dirs

This commit is contained in:
lou 2024-10-15 17:14:05 -04:00
parent 97723e3f3e
commit 3012a295e3

4
manage
View File

@ -117,6 +117,8 @@ function check_dirs() {
done done
if [ "$created_count" -gt 0 ]; then if [ "$created_count" -gt 0 ]; then
echo -e "${COLOR_GREEN}Done.${COLOR_RESET}" echo -e "${COLOR_GREEN}Done.${COLOR_RESET}"
else
echo -e "${COLOR_GREEN}Done.${COLOR_RESET}"
fi fi
elif [ "$action" == "delete" ]; then elif [ "$action" == "delete" ]; then
@ -127,6 +129,8 @@ function check_dirs() {
fi fi
if [ "$deleted_count" -gt 0 ]; then if [ "$deleted_count" -gt 0 ]; then
echo -e "${COLOR_GREEN}Done.${COLOR_RESET}" echo -e "${COLOR_GREEN}Done.${COLOR_RESET}"
else
echo -e "${COLOR_GREEN}Done.${COLOR_RESET}"
fi fi
else else
echo -e "${COLOR_RED}Invalid action: $action. Use 'create' or 'delete'.${COLOR_RESET}" echo -e "${COLOR_RED}Invalid action: $action. Use 'create' or 'delete'.${COLOR_RESET}"