diff options
-rwxr-xr-x | res/bincat.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/res/bincat.sh b/res/bincat.sh index 46483998..eb46655b 100755 --- a/res/bincat.sh +++ b/res/bincat.sh | |||
@@ -1,4 +1,4 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/bash |
2 | # Binary Resource Concatenator | 2 | # Binary Resource Concatenator |
3 | # Copyright: 2021 Jaakko Keränen <jaakko.keranen@iki.fi> | 3 | # Copyright: 2021 Jaakko Keränen <jaakko.keranen@iki.fi> |
4 | # License: BSD 2-Clause | 4 | # License: BSD 2-Clause |
@@ -6,12 +6,12 @@ | |||
6 | OUTPUT=-- | 6 | OUTPUT=-- |
7 | SIZES="" | 7 | SIZES="" |
8 | for fn in $*; do | 8 | for fn in $*; do |
9 | if [ "$OUTPUT" == "--" ]; then | 9 | if [ "$OUTPUT" = "--" ]; then |
10 | OUTPUT=$fn | 10 | OUTPUT=$fn |
11 | rm -f ${OUTPUT} | 11 | rm -f ${OUTPUT} |
12 | else | 12 | else |
13 | vals=(`/bin/ls -l $fn`) | 13 | vals=(`/bin/ls -l $fn`) |
14 | if [ "$SIZES" == "" ]; then | 14 | if [ "$SIZES" = "" ]; then |
15 | SIZES=${vals[4]} | 15 | SIZES=${vals[4]} |
16 | else | 16 | else |
17 | SIZES=$SIZES\;${vals[4]} | 17 | SIZES=$SIZES\;${vals[4]} |