Open bobwya opened 9 years ago
my pc dead and i have not time now. sorry.
If you don't mind I'll try and get around to fixing a few issues and perhaps do a pull request? It's a useful script after all. :-) Thanks
ok
news?
Line 306 is borked... Back slashes, in the system map file path (m_file), break the BASH substitution replacement you used...
MAPS_ORPHANS="${MAPS_ORPHANS/"${m_file}"*/}"
A simple fix is...
MAPS_ORPHANS=$( echo "${MAPS_ORPHANS}" | awk -vm_file="${m_file}" \
'{if ($0 != m_file) print $0; }' )
That covers the issue I noticed... But I see you've used that "hack" in a few other places! The same fix would apply to these instances as well...
I'll probably bash on (excuse the pun!) and tidy the code up a bit...
ls
command - which shouldn't be seen anywhere in a BASH script!It'll be up to you if you want to pull in the changes or I'll just maintain a fork on Github...
Collaborators : Robert Walker you can fix original :3
what you wait!? you have rw perms...
Hi megabaks, Sorry, but I'm only part way through a major re-factoring of the script. My flatmate keeps dumping broken computer equipment on me to repair and I've got my day job, allotment, etc. = quite busy!! I can't push what I've done or major parts of the script won't work at present. Hopefully I'll get it all sorted before I go away on hols in 2 weeks...
Hi,
I like your little kernel cleaner utility... I thought it perhaps would clear out all the left-over kernel files in /boot... But I'm seeing the following (after some cleaning up using kernel-cleaner)...