diff --git a/rtlwifi-setup.sh b/rtlwifi-setup.sh index 5007149..66685e5 100755 --- a/rtlwifi-setup.sh +++ b/rtlwifi-setup.sh @@ -19,24 +19,24 @@ _fetch_deps(){ _download(){ - if [ ! -d ${tmpdir}/${pkgname} ];then - git clone ${pkgurl} ${tmpdir}/${pkgname} + if [ ! -d "${tmpdir}"/"${pkgname}" ];then + git clone "${pkgurl}" "${tmpdir}"/"${pkgname}" fi } _apply_patch(){ - wget https://github.com/cilynx/rtl88x2bu/pull/58.patch + wget "https://github.com/cilynx/rtl88x2bu/pull/58.patch" git apply 58.patch } _install(){ - cd ${tmpdir}/${pkgname} + cd "${tmpdir}"/"${pkgname}" _apply_patch VER=$(sed -n 's/\PACKAGE_VERSION="\(.*\)"/\1/p' dkms.conf) - rsync -rvhP ./ /usr/src/rtl88x2bu-${VER} - dkms add -m rtl88x2bu -v ${VER} - dkms build -m rtl88x2bu -v ${VER} - dkms install -m rtl88x2bu -v ${VER} + rsync -rvhP ./ /usr/src/rtl88x2bu-"${VER}" + dkms add -m rtl88x2bu -v "${VER}" + dkms build -m rtl88x2bu -v "${VER}" + dkms install -m rtl88x2bu -v "${VER}" modprobe 88x2bu }