mirror of
https://github.com/SinTan1729/CheckIntegrity.git
synced 2025-04-18 09:17:41 -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
|
||||
|
||||
# formatting
|
||||
bold=$(tput bold)
|
||||
normal=$(tput sgr0)
|
||||
red=`tput setaf 1`
|
||||
green=`tput setaf 2`
|
||||
normal=`tput sgr0`
|
||||
|
||||
# error function
|
||||
error(){
|
||||
|
@ -19,7 +20,7 @@ error(){
|
|||
f="$1sum $2 | cut -d ' ' -f1"
|
||||
|
||||
if [ $(eval $f) = "$3" ]; then
|
||||
echo "$2 is ${bold}fine.${normal}"
|
||||
echo "$2 is ${green}fine.${normal}"
|
||||
else
|
||||
echo "$2 is ${bold}corrupted!${normal}"
|
||||
echo "$2 is ${red}corrupted!${normal}"
|
||||
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
|
||||
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.>
|
||||
Copyright (C) <year> <name of author>
|
||||
CheckIntegrity: A simple tool for checking integrity of a file by matching
|
||||
checksums with given strings.
|
||||
Copyright (C) 2023 Sayantan Santra
|
||||
|
||||
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
|
||||
|
@ -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
|
||||
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 is free software, and you are welcome to redistribute it
|
||||
under certain conditions; type `show c' for details.
|
||||
|
|
|
@ -27,10 +27,4 @@ The syntax is as follows :
|
|||
|
||||
`hash` is the given hash to match with
|
||||
|
||||
You can type `CheckIntegrity -h` for help.
|
||||
|
||||
### _You might buy me a cup of coffee:_
|
||||
|
||||
**UPI (preferred) : sintan@ybl**
|
||||
|
||||
**PayPal : sayantan.santra689@gmail.com**
|
||||
You can type `CheckIntegrity -h` for help.
|
Loading…
Reference in a new issue