From c8101bcff6fc349a770c978c4cf6c07364f3e62c Mon Sep 17 00:00:00 2001 From: ebasov Date: Thu, 6 Feb 2025 23:21:57 +0300 Subject: [PATCH] Replacing cd with pushd --- SPECS/kernel.spec | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/SPECS/kernel.spec b/SPECS/kernel.spec index 71c9c78..a169ceb 100755 --- a/SPECS/kernel.spec +++ b/SPECS/kernel.spec @@ -2987,9 +2987,8 @@ find Documentation -type d | xargs chmod u+w %{__restore_unstripped_root_post}\ %{__modsign_install_post} -%{__spec_install_post} -cd linux-%{KVERREL} +pushd linux-%{KVERREL} # re-define RPM_VMLINUX_H, because it doesn't carry over from %build RPM_VMLINUX_H="$(cat ../vmlinux_h_path)" @@ -3269,6 +3268,8 @@ find -type f ! -executable -exec install -D -m644 {} %{buildroot}%{_libexecdir}/ popd %endif +popd + ### ### clean ###