add jq to install script and improved cxheckbadge with profile name
This commit is contained in:
@@ -9,6 +9,11 @@ openbadge_file="$2"
|
||||
# halp string
|
||||
halp_str="\nHelp:\n\tAbout:\n\t\tCheckBadge for verifying Openbadges\n\t\tPart of https://github.com/PrincessPi3/general-scripts-and-system-ssssssetup Files\n\tUsage:\n\t\tcheckbadge <string credential (email or phone number)> <string path to openbadge file>\n\t\tExample:\n\t\t\tcheckbadge 'my@email.com' mybadgefile.png\n\t Requires:\n\t\t* coreutils (sha256sum)\n\t\t* jq\n\t\t* exiftool"
|
||||
|
||||
if [[ "$1" =~ ^[-]{0,2}[hH] ]]; then
|
||||
echo -e "$halp_str"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# maek sure da args are in place or print help and fail
|
||||
if [ -z "$provided_credential" -o -z "$openbadge_file" ]; then
|
||||
echo -e "\nERROR: must provide the credential and the file path"
|
||||
|
||||
Reference in New Issue
Block a user