rtlwifi-setup: handle potential 'cd' errors

This commit is contained in:
mollusk 2021-10-17 10:54:58 -07:00
parent 86c1d119e1
commit d1e9c221a3

View File

@ -30,7 +30,7 @@ _apply_patch(){
}
_install(){
cd "${tmpdir}"/"${pkgname}"
cd "${tmpdir}"/"${pkgname}" || exit 1
#_apply_patch
VER=$(sed -n 's/\PACKAGE_VERSION="\(.*\)"/\1/p' dkms.conf)
rsync -rvhP ./ /usr/src/rtl88x2bu-"${VER}"