summaryrefslogtreecommitdiff
path: root/scripts/embedded_scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/embedded_scripts')
-rwxr-xr-xscripts/embedded_scripts22
1 files changed, 8 insertions, 14 deletions
diff --git a/scripts/embedded_scripts b/scripts/embedded_scripts
index c2e7c69..86ad44d 100755
--- a/scripts/embedded_scripts
+++ b/scripts/embedded_scripts
@@ -81,21 +81,15 @@ exec >"$target.$$"
if [ $n -ne 0 ]
then
printf '#ifdef DEFINE_SCRIPT_DATA\n'
- if [ $n -ne 0 ]
- then
- printf 'const uint16_t applet_numbers[] = {\n'
- for i in $custom_scripts $applet_scripts
- do
- # TODO support applets with names including invalid characters
- printf '\tAPPLET_NO_%s,\n' $i
- done
- printf '};\n'
- fi
+ printf 'const uint16_t applet_numbers[] = {\n'
+ for i in $custom_scripts $applet_scripts
+ do
+ # TODO support applets with names including invalid characters
+ printf '\tAPPLET_NO_%s,\n' $i
+ done
+ printf '};\n'
printf '#else\n'
- if [ $n -ne 0 ]
- then
- printf 'extern const uint16_t applet_numbers[];\n'
- fi
+ printf 'extern const uint16_t applet_numbers[];\n'
printf '#endif\n'
fi