Skip to content
Snippets Groups Projects
Commit b77691c7 authored by Piotr Ożarowski's avatar Piotr Ożarowski
Browse files

* let rm command do the checking part

* remove .pyo files as well if pyclean is not available
parent c6dbf619
No related branches found
No related tags found
No related merge requests found
......@@ -3,9 +3,6 @@ if which pyclean >/dev/null 2>&1; then
else
dpkg -L #PACKAGE# | grep \.py$ | while read file
do
if [ -f "${file}c" ]
then
rm -f "${file}c"
fi
rm -f "${file}"[co] >/dev/null
done
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment