rtlwifi-setup: handle potential 'cd' errors
This commit is contained in:
parent
86c1d119e1
commit
d1e9c221a3
@ -30,7 +30,7 @@ _apply_patch(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
_install(){
|
_install(){
|
||||||
cd "${tmpdir}"/"${pkgname}"
|
cd "${tmpdir}"/"${pkgname}" || exit 1
|
||||||
#_apply_patch
|
#_apply_patch
|
||||||
VER=$(sed -n 's/\PACKAGE_VERSION="\(.*\)"/\1/p' dkms.conf)
|
VER=$(sed -n 's/\PACKAGE_VERSION="\(.*\)"/\1/p' dkms.conf)
|
||||||
rsync -rvhP ./ /usr/src/rtl88x2bu-"${VER}"
|
rsync -rvhP ./ /usr/src/rtl88x2bu-"${VER}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user