Closes #95: defining local variable and fixing args check

This commit is contained in:
Bruno Pinto 2014-01-07 13:54:56 -02:00
parent ef24766b0e
commit 04011838ff

View File

@ -1,10 +1,12 @@
# clean current directory recursively from any .pyc and .pyo files
function pyclean
if test -n $argv
set path2CLEAN $argv
else
set -l path2CLEAN
if set -q $argv
set path2CLEAN .
else
set path2CLEAN $argv
end
find $path2CLEAN -name "*.py[co]" -type f -delete
end
end