Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
ximper-builder
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ximper Linux
ximper-builder
Commits
907dd7d7
Commit
907dd7d7
authored
Dec 16, 2024
by
Roman Alifanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
say hello to gen_md5!
parent
6b613d5c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
gen_md5
bin/gen_md5
+30
-0
No files found.
bin/gen_md5
0 → 100755
View file @
907dd7d7
#!/bin/bash
if
[
"$#"
-eq
0
]
;
then
echo
"Использование:
$0
<список файлов>"
exit
1
fi
for
file
in
"
$@
"
;
do
if
[
!
-f
"
$file
"
]
;
then
echo
"Файл '
$file
' не существует. Пропуск."
continue
fi
if
[[
"
$file
"
==
*
.md5
]]
;
then
echo
"Файл '
$file
' уже является .md5. Пропуск."
continue
fi
md5_file
=
"
${
file
}
.md5"
if
[
-f
"
$md5_file
"
]
;
then
echo
"Файл суммы '
$md5_file
' уже существует. Пропуск."
continue
fi
md5sum
"
$file
"
>
"
$md5_file
"
echo
"Сумма MD5 для '
$file
' записана в '
$md5_file
'."
done
echo
"Обработка завершена."
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment