diff options
author | Michael Heimpold <mhei@heimpold.de> | 2018-12-04 23:12:05 +0100 |
---|---|---|
committer | Hans Dedecker <dedeckeh@gmail.com> | 2018-12-05 22:16:52 +0100 |
commit | d6ac8ca76c04ed39d7dd5de73d3b921819934186 (patch) | |
tree | 1f17cdf8beabf5b6520dfb709fa078c9a44b7064 /package/base-files/files/lib/upgrade | |
parent | 8ad45992acab9a2dead144d5b387fbe132ce59c1 (diff) | |
download | upstream-d6ac8ca76c04ed39d7dd5de73d3b921819934186.tar.gz upstream-d6ac8ca76c04ed39d7dd5de73d3b921819934186.tar.bz2 upstream-d6ac8ca76c04ed39d7dd5de73d3b921819934186.zip |
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>
Diffstat (limited to 'package/base-files/files/lib/upgrade')
-rw-r--r-- | package/base-files/files/lib/upgrade/common.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package/base-files/files/lib/upgrade/common.sh b/package/base-files/files/lib/upgrade/common.sh index 9e9144cba4..8ee07494a3 100644 --- a/package/base-files/files/lib/upgrade/common.sh +++ b/package/base-files/files/lib/upgrade/common.sh @@ -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 } |