Merge "Use delete action for clean up *.pyc files"
This commit is contained in:
commit
eb9d42b65c
7
clean.sh
7
clean.sh
@ -149,5 +149,10 @@ rm -rf ~/.config/openstack
|
||||
|
||||
# Clean up all *.pyc files
|
||||
if [[ -n "$DEST" ]] && [[ -d "$DEST" ]]; then
|
||||
sudo find $DEST -name "*.pyc" -print0 | xargs -0 rm
|
||||
find_version=`find --version | awk '{ print $NF; exit}'`
|
||||
if vercmp "$find_version" "<" "4.2.3" ; then
|
||||
sudo find $DEST -name "*.pyc" -print0 | xargs -0 rm
|
||||
else
|
||||
sudo find $DEST -name "*.pyc" -delete
|
||||
fi
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user