mirror of
https://github.com/factoriotools/factorio-docker.git
synced 2024-11-10 04:37:23 +01:00
Fix sha check
This commit is contained in:
parent
1b6c8adf28
commit
9c92ac9342
@ -67,8 +67,7 @@ update_mod()
|
|||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
set -- "$(sha1sum "$MOD_DIR/$MOD_FILENAME")"
|
if ! [[ $(sha1sum "$MOD_DIR/$MOD_FILENAME") =~ $MOD_SHA1 ]]; then
|
||||||
if [[ $1 != "$MOD_SHA1" ]]; then
|
|
||||||
print_failure " SHA1 mismatch!"
|
print_failure " SHA1 mismatch!"
|
||||||
rm "$MOD_DIR/$MOD_FILENAME"
|
rm "$MOD_DIR/$MOD_FILENAME"
|
||||||
return 1
|
return 1
|
||||||
|
Loading…
Reference in New Issue
Block a user