base-files: fix several bashisms

For equality test a simple = is sufficient, the == is
usually disregarded as bashism.

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
This commit is contained in:
Michael Heimpold
2018-12-04 23:12:05 +01:00
committed by Hans Dedecker
parent 8ad45992ac
commit d6ac8ca76c
5 changed files with 5 additions and 5 deletions

View File

@@ -164,7 +164,7 @@ export_partdevice() {
}
hex_le32_to_cpu() {
[ "$(echo 01 | hexdump -v -n 2 -e '/2 "%x"')" == "3031" ] && {
[ "$(echo 01 | hexdump -v -n 2 -e '/2 "%x"')" = "3031" ] && {
echo "${1:0:2}${1:8:2}${1:6:2}${1:4:2}${1:2:2}"
return
}