Compare commits

...

4 commits
1.5 ... master

Author SHA1 Message Date
c7e50e6aa5 Updated LICENSE 2023-04-10 20:25:04 -05:00
a59b6cea3c Clean up 2022-01-07 13:21:23 -06:00
218b7dbae6 Added coloured output 2022-01-07 13:15:02 -06:00
58adc128ab Updated README.md 2022-01-07 02:58:37 -06:00
3 changed files with 10 additions and 14 deletions

View file

@ -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

View file

@ -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.

View file

@ -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.