You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#!/bin/bash# Define the input directory
INPUT_DIR="icons/filled"# Define the output directory
OUTPUT_DIR="${INPUT_DIR}_vec"# Check if the input directory existsif [ !-d"$INPUT_DIR" ];thenecho"Error: Directory '$INPUT_DIR' not found."exit 1
fi# Check if the input directory is emptyif [ -z"$(ls -A "$INPUT_DIR")" ];thenecho"Error: Directory '$INPUT_DIR' is empty."exit 1
fi# Create the output directory if it doesn't existif [ !-d"$OUTPUT_DIR" ];thenecho"Creating output directory '$OUTPUT_DIR'..."
mkdir -p "$OUTPUT_DIR"fi# Process each .svg file in the input directoryforsvg_filein"$INPUT_DIR"/*.svg;doif [ -f"$svg_file" ];then# Get the base filename (without path)
base_name=$(basename "$svg_file")# Define the output file path
output_file="$OUTPUT_DIR/${base_name}.vec"echo"Compiling $svg_file to $output_file..."
dart run vector_graphics_compiler -i "$svg_file" -o "$output_file"fidoneecho"All SVGs have been compiled to .vec files in '$OUTPUT_DIR'."
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: