We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ea90fe commit a6aa323Copy full SHA for a6aa323
assets/generate_assets_header.sh
@@ -1,4 +1,4 @@
1
-#!/bin/sh
+#!/bin/sh -eu
2
3
if [ $# -lt 1 ] || [ ! -d "$1" ]; then
4
printf 'Syntax: %s [final asset directory]\n' "$(basename "$0")"
@@ -8,7 +8,8 @@ fi
8
# Delete output file if already present
9
rm -rf "$1"/assets.h 2>/dev/null || true
10
11
-readonly TMP_ASSET_FILE=$(mktemp --tmpdir assets.h.XXX)
+TMP_ASSET_FILE=$(mktemp --tmpdir assets.h.XXX)
12
+readonly TMP_ASSET_FILE
13
14
printf '//Automatically generated header file. Do not edit!\n\n#pragma once\n\n#include <stddef.h>\n\n' > "$TMP_ASSET_FILE"
15
0 commit comments