This commit is contained in:
2025-09-01 18:38:28 -06:00
parent 7df34bd7ed
commit d27935f8ba
+1 -1
View File
@@ -41,7 +41,7 @@ cat "$tmp_links_file" | \
if [[ "$item" == "$type" ]]; then if [[ "$item" == "$type" ]]; then
# rename the downloaded file # rename the downloaded file
new_name="$outdir/$namehash.$(echo ${exts_arr[$count]})" new_name="$outdir/$namehash.$(echo ${exts_arr[$count]})"
# echo -e "\tRenaming $file_basename to $new_name\n" echo -e "\tRenaming $file_basename to $new_name"
mv "$tmp_file_download" "$new_name" mv "$tmp_file_download" "$new_name"
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
echo -e "\nFailed to rename $tmp_file_download to $new_name\n\turl\n\t$line\n\ttype $type\n\tbase name: $file_basename\n" echo -e "\nFailed to rename $tmp_file_download to $new_name\n\turl\n\t$line\n\ttype $type\n\tbase name: $file_basename\n"