From d1474f75221dd48642808b4d96d4409c02eed83d Mon Sep 17 00:00:00 2001 From: mollusk Date: Sun, 17 Oct 2021 10:53:09 -0700 Subject: [PATCH] rtlwifi-setup: encapulate vars --- rtlwifi-setup.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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 }