summaryrefslogtreecommitdiffstats
path: root/util/bin/make-data-uri
blob: a9d014e652d60f44b3a8cc59433e61c7ee56939e (plain)
1
2
3
4
5
6
7
#! /bin/sh
set -euf
for path; do
  type="`file -bi "$path"`"
  data="`base64 -w 0 "$path"`"
  echo "data:$type;base64,$data"
done