Skip to content

Commit a6aa323

Browse files
committed
Nitpick some things on the assets header generation script
1 parent 0ea90fe commit a6aa323

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

assets/generate_assets_header.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/sh
1+
#!/bin/sh -eu
22

33
if [ $# -lt 1 ] || [ ! -d "$1" ]; then
44
printf 'Syntax: %s [final asset directory]\n' "$(basename "$0")"
@@ -8,7 +8,8 @@ fi
88
# Delete output file if already present
99
rm -rf "$1"/assets.h 2>/dev/null || true
1010

11-
readonly TMP_ASSET_FILE=$(mktemp --tmpdir assets.h.XXX)
11+
TMP_ASSET_FILE=$(mktemp --tmpdir assets.h.XXX)
12+
readonly TMP_ASSET_FILE
1213

1314
printf '//Automatically generated header file. Do not edit!\n\n#pragma once\n\n#include <stddef.h>\n\n' > "$TMP_ASSET_FILE"
1415

0 commit comments

Comments
 (0)