trunk: When creating BACKUP_DIR, also create parent dirs if needed.
intrigeri
18 years ago
310 | 310 | # Check the existence of the resulting BACKUP_DIR, creating it if needed. |
311 | 311 | if [ ! -d "$BACKUP_DIR" ]; then |
312 | 312 | debug " Creating $BACKUP_DIR directory for `current_system`." |
313 | if mkdir "$BACKUP_DIR"; then | |
313 | if mkdir -p "$BACKUP_DIR"; then | |
314 | 314 | debug " Successfully created $BACKUP_DIR directory." |
315 | 315 | else |
316 | 316 | fatal " Failed to create $BACKUP_DIR directory." |