diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-01-05 17:46:12 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-01-05 17:46:12 +0200 |
commit | 49ef88313118738cf4fe627b282d1b38524ee33a (patch) | |
tree | e908b91529b39e7c18e606e0ff0872302c5b9524 | |
parent | 7307fdd910cc8f51a898f83f97feda34b0a9477d (diff) |
Updated bincat.sh to use /bin/bash
This works on Linux, but of course makes bash a dependency.
ENABLE_BINCAT_SH is still disabled by default.
-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]} |