We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 041cf00 commit 54aa988Copy full SHA for 54aa988
1 file changed
usr/share/usability-misc/dist-installer-cli-standalone
@@ -5301,15 +5301,9 @@ check_hash() {
5301
if [ -n "${target_user}" ]; then
5302
run_as_target_user_and_dir "${dir}" "${checkhash[@]}" "${shafile}" || return 1
5303
else
5304
- ## Use a subshell to avoid changing the working directory of the parent
5305
- ## shell.
5306
- ##
5307
- ## 'set -e' will propagate the `return 1` from within the subshell
5308
- ## properly.
5309
- (
5310
- cd -- "${dir}"
+ pushd -- "${dir}" >/dev/null
5311
log_run info run_as_target_user "${checkhash[@]}" "${shafile}" || return 1
5312
- )
+ popd >/dev/null
5313
fi
5314
log info "SHA512 Hash Verification: 'success'"
5315
}
0 commit comments