From d1e9c221a3079c5e7fce15dc8d5d9016ea14d8da Mon Sep 17 00:00:00 2001 From: mollusk Date: Sun, 17 Oct 2021 10:54:58 -0700 Subject: [PATCH] rtlwifi-setup: handle potential 'cd' errors --- rtlwifi-setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtlwifi-setup.sh b/rtlwifi-setup.sh index 8c57848..71b7d09 100755 --- a/rtlwifi-setup.sh +++ b/rtlwifi-setup.sh @@ -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}"