mirror of
https://github.com/SinTan1729/CheckIntegrity.git
synced 2024-12-26 08:38:35 -06:00
Merge pull request #1 from SinTan1729/beautify
Made the script prettier
This commit is contained in:
commit
ffc8815554
1 changed files with 2 additions and 9 deletions
|
@ -10,17 +10,10 @@ error(){
|
||||||
}
|
}
|
||||||
|
|
||||||
# check if asking for help
|
# check if asking for help
|
||||||
if [ $# -eq 1 ] && [ $1 = "-h" ]; then
|
[ $# -eq 1 ] & [ $1 = "-h" ] && error && exit 1
|
||||||
error
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# check validity of input
|
# check validity of input
|
||||||
if [ $# -ne 3 ]; then
|
[ $# -ne 3 ] && printf "${bold}Input is wrong!${normal}\n\n" && error && exit -1
|
||||||
printf "${bold}Input is wrong!${normal}\n\n"
|
|
||||||
error
|
|
||||||
exit -1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# main code
|
# main code
|
||||||
f=$1
|
f=$1
|
||||||
|
|
Loading…
Reference in a new issue