Fixed hash non-reset & verification bug.
This commit is contained in:
parent
065bec6b0f
commit
b15c6ec55c
5
fluxion
5
fluxion
|
@ -1308,7 +1308,7 @@ fluxion_hash_set_path() {
|
||||||
return ;;
|
return ;;
|
||||||
|
|
||||||
"$FLUXIONHashSourceRescanOption")
|
"$FLUXIONHashSourceRescanOption")
|
||||||
fluxion_hash_set_path "$hashPath"
|
fluxion_hash_set_path "$@"
|
||||||
return $? ;;
|
return $? ;;
|
||||||
|
|
||||||
"$FLUXIONGeneralBackOption")
|
"$FLUXIONGeneralBackOption")
|
||||||
|
@ -1345,9 +1345,10 @@ fluxion_hash_get_path() {
|
||||||
if [ ${#@} -lt 2 ]; then return 1; fi
|
if [ ${#@} -lt 2 ]; then return 1; fi
|
||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
|
fluxion_hash_unset_path
|
||||||
if ! fluxion_hash_set_path "$@"; then return $?; fi
|
if ! fluxion_hash_set_path "$@"; then return $?; fi
|
||||||
|
|
||||||
if fluxion_hash_verify "$FluxionHashPath" "${@:1}"; then
|
if fluxion_hash_verify "$FluxionHashPath" "$2" "$3"; then
|
||||||
break;
|
break;
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue