name : only target matching files by default.
This commit is contained in:
parent
c3301caa23
commit
3fa9f62f09
|
@ -345,7 +345,7 @@ name_prefix()
|
||||||
|
|
||||||
# All targets by default.
|
# All targets by default.
|
||||||
if [[ "${targets}" = "" ]]; then
|
if [[ "${targets}" = "" ]]; then
|
||||||
targets=([^.]*)
|
targets=(${old}*)
|
||||||
total=${#targets[@]}
|
total=${#targets[@]}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -393,7 +393,7 @@ name_postfix()
|
||||||
|
|
||||||
# All targets by default.
|
# All targets by default.
|
||||||
if [[ "${targets}" = "" ]]; then
|
if [[ "${targets}" = "" ]]; then
|
||||||
targets=([^.]*)
|
targets=(*${old})
|
||||||
total=${#targets[@]}
|
total=${#targets[@]}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -403,7 +403,7 @@ name_postfix()
|
||||||
((count++))
|
((count++))
|
||||||
|
|
||||||
# Create new name.
|
# Create new name.
|
||||||
local new_name="${new}${target%$old}"
|
local new_name="${target%$old}${new}"
|
||||||
|
|
||||||
# Prepare status.
|
# Prepare status.
|
||||||
local status="[${count}/${total}] ${target} -> ${new_name}"
|
local status="[${count}/${total}] ${target} -> ${new_name}"
|
||||||
|
|
Reference in a new issue