mirror of
https://github.com/SinTan1729/CheckIntegrity.git
synced 2025-04-20 02:00:01 -05:00
Compare commits
4 commits
Author | SHA1 | Date | |
---|---|---|---|
c7e50e6aa5 | |||
a59b6cea3c | |||
218b7dbae6 | |||
58adc128ab |
3 changed files with 10 additions and 14 deletions
|
@ -1,8 +1,9 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# formatting
|
# formatting
|
||||||
bold=$(tput bold)
|
red=`tput setaf 1`
|
||||||
normal=$(tput sgr0)
|
green=`tput setaf 2`
|
||||||
|
normal=`tput sgr0`
|
||||||
|
|
||||||
# error function
|
# error function
|
||||||
error(){
|
error(){
|
||||||
|
@ -19,7 +20,7 @@ error(){
|
||||||
f="$1sum $2 | cut -d ' ' -f1"
|
f="$1sum $2 | cut -d ' ' -f1"
|
||||||
|
|
||||||
if [ $(eval $f) = "$3" ]; then
|
if [ $(eval $f) = "$3" ]; then
|
||||||
echo "$2 is ${bold}fine.${normal}"
|
echo "$2 is ${green}fine.${normal}"
|
||||||
else
|
else
|
||||||
echo "$2 is ${bold}corrupted!${normal}"
|
echo "$2 is ${red}corrupted!${normal}"
|
||||||
fi
|
fi
|
||||||
|
|
7
LICENSE
7
LICENSE
|
@ -631,8 +631,9 @@ to attach them to the start of each source file to most effectively
|
||||||
state the exclusion of warranty; and each file should have at least
|
state the exclusion of warranty; and each file should have at least
|
||||||
the "copyright" line and a pointer to where the full notice is found.
|
the "copyright" line and a pointer to where the full notice is found.
|
||||||
|
|
||||||
<one line to give the program's name and a brief idea of what it does.>
|
CheckIntegrity: A simple tool for checking integrity of a file by matching
|
||||||
Copyright (C) <year> <name of author>
|
checksums with given strings.
|
||||||
|
Copyright (C) 2023 Sayantan Santra
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
@ -652,7 +653,7 @@ Also add information on how to contact you by electronic and paper mail.
|
||||||
If the program does terminal interaction, make it output a short
|
If the program does terminal interaction, make it output a short
|
||||||
notice like this when it starts in an interactive mode:
|
notice like this when it starts in an interactive mode:
|
||||||
|
|
||||||
<program> Copyright (C) <year> <name of author>
|
CheckIntegrity Copyright (C) 2023 Sayantan Santra
|
||||||
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||||
This is free software, and you are welcome to redistribute it
|
This is free software, and you are welcome to redistribute it
|
||||||
under certain conditions; type `show c' for details.
|
under certain conditions; type `show c' for details.
|
||||||
|
|
|
@ -28,9 +28,3 @@ The syntax is as follows :
|
||||||
`hash` is the given hash to match with
|
`hash` is the given hash to match with
|
||||||
|
|
||||||
You can type `CheckIntegrity -h` for help.
|
You can type `CheckIntegrity -h` for help.
|
||||||
|
|
||||||
### _You might buy me a cup of coffee:_
|
|
||||||
|
|
||||||
**UPI (preferred) : sintan@ybl**
|
|
||||||
|
|
||||||
**PayPal : sayantan.santra689@gmail.com**
|
|
||||||
|
|
Loading…
Reference in a new issue