Skip to content

Commit 554b177

Browse files
use string evaluation instead
using -eq or -ge make bash to perfrom integer evaluation
1 parent 6eb443e commit 554b177

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

udroid/src/udroid.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,8 @@ verify_integrity() {
114114
LOG "filesum=$filesha"
115115
LOG "shasum=$shasum"
116116

117-
if [[ $filesha -eq $shasum ]]; then
117+
if [[ "$filesha" == "$shasum" ]]; then
118118
LOG "file integrity check failed"
119-
GWARN "file integrity check failed"
120119
return 1
121120
else
122121
LOG "file integrity check passed"

0 commit comments

Comments
 (0)