mirror of
https://github.com/SinTan1729/CheckIntegrity.git
synced 2025-04-19 09:40:00 -05:00
Compare commits
No commits in common. "master" and "1.5" have entirely different histories.
3 changed files with 14 additions and 10 deletions
|
@ -1,9 +1,8 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# formatting
|
# formatting
|
||||||
red=`tput setaf 1`
|
bold=$(tput bold)
|
||||||
green=`tput setaf 2`
|
normal=$(tput sgr0)
|
||||||
normal=`tput sgr0`
|
|
||||||
|
|
||||||
# error function
|
# error function
|
||||||
error(){
|
error(){
|
||||||
|
@ -20,7 +19,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 ${green}fine.${normal}"
|
echo "$2 is ${bold}fine.${normal}"
|
||||||
else
|
else
|
||||||
echo "$2 is ${red}corrupted!${normal}"
|
echo "$2 is ${bold}corrupted!${normal}"
|
||||||
fi
|
fi
|
||||||
|
|
7
LICENSE
7
LICENSE
|
@ -631,9 +631,8 @@ 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.
|
||||||
|
|
||||||
CheckIntegrity: A simple tool for checking integrity of a file by matching
|
<one line to give the program's name and a brief idea of what it does.>
|
||||||
checksums with given strings.
|
Copyright (C) <year> <name of author>
|
||||||
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
|
||||||
|
@ -653,7 +652,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:
|
||||||
|
|
||||||
CheckIntegrity Copyright (C) 2023 Sayantan Santra
|
<program> Copyright (C) <year> <name of author>
|
||||||
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.
|
||||||
|
|
|
@ -27,4 +27,10 @@ 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