diff --git a/install.sh b/install.sh index fceb556e..4486054b 100755 --- a/install.sh +++ b/install.sh @@ -14,7 +14,7 @@ if [[ -z "${INSTALLED[*]}" ]]; then # TODO: Works around https://github.com/dell/dkms/issues/177 for DKMS 3 echo "* adding hid-xpadneo-${VERSION} folder to /usr/src" mkdir -p "/usr/src/hid-xpadneo-${VERSION}" - cp --recursive hid-xpadneo/. "/usr/src/hid-xpadneo-${VERSION}/." + cp --recursive "${V[@]}" hid-xpadneo/. "/usr/src/hid-xpadneo-${VERSION}/." echo "* installing module (using DKMS)" dkms install "${V[*]}" "hid-xpadneo/${VERSION}" --force || cat_dkms_make_log diff --git a/uninstall.sh b/uninstall.sh index d7ab9bb6..0f5014ad 100755 --- a/uninstall.sh +++ b/uninstall.sh @@ -20,5 +20,5 @@ do dkms remove "${V[*]}" "hid-xpadneo/${instance}" --all echo " * removing $instance folder from /usr/src" - rm --recursive "/usr/src/hid-xpadneo-$instance/" + rm --recursive "${V[@]}" "/usr/src/hid-xpadneo-$instance/" done