Verified Commit a5e22601 authored by likewhoa's avatar likewhoa
Browse files

logic on file deletion on Specter uninstall

parent af8c7591
......@@ -2235,7 +2235,7 @@ EOF
cd "$HOME"/specter-"${_specter_version:-$specter_version}"/udev || exit
for file in *.rules; do
sudo rm /etc/udev/rules.d/"${file}"
test -f /etc/udev/rules.d/"${file}" && sudo rm /etc/udev/rules.d/"${file}"
done
sudo udevadm trigger
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment