Add file count progress in images-indexer.sh script with filter option
This commit is contained in:
@@ -199,12 +199,13 @@ if $filter_mode; then
|
|||||||
eval "feh --geometry 1200x1250+1308+28 --auto-zoom --scale-down $eval_string &"
|
eval "feh --geometry 1200x1250+1308+28 --auto-zoom --scale-down $eval_string &"
|
||||||
|
|
||||||
files_to_delete=()
|
files_to_delete=()
|
||||||
for ((i = 0; i < ${#files[@]};)); do
|
files_count=${#files[@]}
|
||||||
|
for ((i = 0; i < files_count;)); do
|
||||||
file="${files[$i]}"
|
file="${files[$i]}"
|
||||||
file="${file#./}"
|
file="${file#./}"
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "File: $file"
|
echo "($((i+1))/${files_count}) File: $file"
|
||||||
echo -n "Should this file be deleted? (y/n): "
|
echo -n "Should this file be deleted? (y/n): "
|
||||||
|
|
||||||
confirm
|
confirm
|
||||||
|
|||||||
Reference in New Issue
Block a user