Skip to content

Commit 03f7653

Browse files
committed
fix macos stat
1 parent 6802104 commit 03f7653

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

embed.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22
# ./embed.sh <source> <target> <variable>
3-
SIZE=$(($(stat -c %s "$1") + 1))
3+
SIZE=$(($(cat "$1" | wc -c) + 1))
44

55
cat <<EOF > "$2.h"
66
#pragma once

0 commit comments

Comments
 (0)