Skip to content

Commit 54aa988

Browse files
committed
fix
1 parent 041cf00 commit 54aa988

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

usr/share/usability-misc/dist-installer-cli-standalone

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5301,15 +5301,9 @@ check_hash() {
53015301
if [ -n "${target_user}" ]; then
53025302
run_as_target_user_and_dir "${dir}" "${checkhash[@]}" "${shafile}" || return 1
53035303
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}"
5304+
pushd -- "${dir}" >/dev/null
53115305
log_run info run_as_target_user "${checkhash[@]}" "${shafile}" || return 1
5312-
)
5306+
popd >/dev/null
53135307
fi
53145308
log info "SHA512 Hash Verification: 'success'"
53155309
}

0 commit comments

Comments
 (0)