Skip to content

Instantly share code, notes, and snippets.

@thebopshoobop
Created September 21, 2016 18:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thebopshoobop/851e40a8eb13a5ee7ef48f01b8fb0cdb to your computer and use it in GitHub Desktop.
Save thebopshoobop/851e40a8eb13a5ee7ef48f01b8fb0cdb to your computer and use it in GitHub Desktop.
.install file to clean up *.pyc files on removal or upgrade of live-usb-install
pre_upgrade() {
/usr/bin/find /usr/share/live-usb-install -name \*.pyc -delete
}
post_remove() {
/usr/bin/find /usr/share/live-usb-install -name \*.pyc -delete
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment