fix: counter breaks while loop

This commit is contained in:
ngn 2024-05-02 22:56:32 +03:00
parent e29c3ce419
commit 3bc3c7b8db
2 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-05-02 22:51+0300\n"
"POT-Creation-Date: 2024-05-02 22:56+0300\n"
"PO-Revision-Date: 2024-05-01 13:34+0300\n"
"Last-Translator: <ngn@ngn.tf>\n"
"Language-Team: Turkish <gnome-turk@gnome.org>\n"

View File

@ -42,7 +42,7 @@ bool gen_cmd() {
info(_("Copying all the targets"));
bar_init();
while (cur && counter++) {
while (cur && ++counter > 0) {
if(!target_copy(cur, true)){
error(_("Failed to copy the target:"));
details(errch);