Skip to content

Instantly share code, notes, and snippets.

@alanmatiasdev
Created July 15, 2024 11:11
Show Gist options
  • Select an option

  • Save alanmatiasdev/251f4b7af68df7c99e9c4f402c521428 to your computer and use it in GitHub Desktop.

Select an option

Save alanmatiasdev/251f4b7af68df7c99e9c4f402c521428 to your computer and use it in GitHub Desktop.

Revisions

  1. alanmatiasdev created this gist Jul 15, 2024.
    15 changes: 15 additions & 0 deletions converter.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    #!/bin/bash

    if ! command -v woff2_decompress &> /dev/null

    then
    echo "woff2_decompress could not be found"
    exit
    fi

    for file in *.woff2; do
    echo "Converting $file to TTF..."
    woff2_decompress "$file"
    done

    echo "Conversion complete"!