Codebase list metche / ced976c
trunk: When creating BACKUP_DIR, also create parent dirs if needed. intrigeri 18 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
310310 # Check the existence of the resulting BACKUP_DIR, creating it if needed.
311311 if [ ! -d "$BACKUP_DIR" ]; then
312312 debug " Creating $BACKUP_DIR directory for `current_system`."
313 if mkdir "$BACKUP_DIR"; then
313 if mkdir -p "$BACKUP_DIR"; then
314314 debug " Successfully created $BACKUP_DIR directory."
315315 else
316316 fatal " Failed to create $BACKUP_DIR directory."