Add a function to overwrite just the version and sha256 by grepping them

This commit is contained in:
Michael Raskin 2014-06-13 13:35:00 +04:00
parent 64274e9981
commit 258040a939

View File

@ -246,6 +246,12 @@ do_overwrite () {
mv "$1.new.tmp" "$1"
}
do_overwrite_just_version () {
ensure_hash
set_var_value version $CURRENT_VERSION
set_var_value sha256 $CURRENT_HASH
}
process_config () {
CONFIG_DIR="$(directory_of "$1")"
CONFIG_NAME="$(basename "$1")"