rename *ignore_global/local to *ignore.global/local.txt

This commit is contained in:
luk
2024-04-20 11:55:00 +08:00
parent 7d3cf98072
commit 30e0c2551a
12 changed files with 39 additions and 137 deletions

View File

@@ -20,9 +20,9 @@ then
MAXDEPTH_CLAUSE="-maxdepth $MAXDEPTH"
fi
echo "To find file or directory? [f] for file, [d] for directory, [l] for link, [leave blank] for all:"
echo "To find file or directory? [f] for file, [d] for directory, [l] for link, [anything else] for all:"
read -p ">>> " FIND_TYPE
if [ "$FIND_TYPE" ]
if [ "$FIND_TYPE" = 'f' ] || [ "$FIND_TYPE" = 'd' ] || [ "$FIND_TYPE" = 'l' ]
then
FIND_TYPE_CLAUSE="-type $FIND_TYPE"
fi