armbian-next: compress-checksum: move config to config-prepare; drop weight; kill warnings

This commit is contained in:
Ricardo Pardini
2023-01-27 01:03:59 +01:00
parent 941bc81868
commit 39208d1007
2 changed files with 20 additions and 42 deletions

View File

@@ -136,6 +136,12 @@ function config_pre_main() {
}
function config_post_main() {
if [[ $COMPRESS_OUTPUTIMAGE == "" || $COMPRESS_OUTPUTIMAGE == no ]]; then
COMPRESS_OUTPUTIMAGE="sha,img"
elif [[ $COMPRESS_OUTPUTIMAGE == yes ]]; then
COMPRESS_OUTPUTIMAGE="sha,7z"
fi
if [[ "$BETA" == "yes" ]]; then
IMAGE_TYPE=nightly
elif [ "$BETA" == "no" ] || [ "$RC" == "yes" ]; then