summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Dechesne <nicolas.dechesne@linaro.org>2023-03-27 10:04:26 +0200
committerNicolas Dechesne <nicolas.dechesne@linaro.org>2023-03-27 10:04:26 +0200
commit681c55855e8e988d144ef26e09b0bed28731eb54 (patch)
treedce4c2fda8af7b3097d85fec14b2b442814be373
parent745358fdc26735388a34d73dcb8a0342adb2b979 (diff)
msm-platforms: fix bashismsHEADmaster
Make sure that this script can work with Posix shell. Use /bin/sh as default, since it now works with either Posix shell or bash. Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
-rwxr-xr-xmsm-platforms/msm-platforms.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/msm-platforms/msm-platforms.sh b/msm-platforms/msm-platforms.sh
index 535eb44..2e95657 100755
--- a/msm-platforms/msm-platforms.sh
+++ b/msm-platforms/msm-platforms.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
OUTPUT=$(mktemp)
OUTPUT_CSV=$(mktemp --suffix .csv)
@@ -14,7 +14,7 @@ for year in $(seq 2008 $(date +%Y)); do
# very old stuff, platform files
# mahimahi and sapphire have board file, but not include in Makefile, exclude them
# trout and halibut use the same SoC, only count one for the SoC
- if git show ${sha}:arch/arm/mach-msm/ &> ${OUTPUT}; then
+ if git show ${sha}:arch/arm/mach-msm/ > ${OUTPUT} 2>&1 ; then
grep 'board-.*\.c' ${OUTPUT} | \
grep -v '\(-panel\|-mmc\|-gpio\|-dt\|-mahimahi\|-sapphire\)' | \
while read -r line ; do
@@ -29,7 +29,7 @@ for year in $(seq 2008 $(date +%Y)); do
fi
# arm32 DT
- if git show ${sha}:arch/arm/boot/dts/ &> ${OUTPUT}; then
+ if git show ${sha}:arch/arm/boot/dts/ > ${OUTPUT} 2>&1 ; then
grep 'qcom-\(msm\|mdm\|ipq\|apq\|sdx\).*.dtsi' ${OUTPUT} | \
grep -v 'qcom-.*-' | \
while read -r line ; do
@@ -42,7 +42,7 @@ for year in $(seq 2008 $(date +%Y)); do
fi
# arm64 DT
- if git show ${sha}:arch/arm64/boot/dts/qcom/ &> ${OUTPUT}; then
+ if git show ${sha}:arch/arm64/boot/dts/qcom/ > ${OUTPUT} 2>&1 ; then
grep '\(apq\|ipq\|msm\|sc\|sdm\|sm\|sa\|qcs\).*\.dtsi' ${OUTPUT} | \
grep -v '\-' | \
while read -r line ; do