add jq to install script and improved cxheckbadge with profile name

This commit is contained in:
2025-11-17 21:01:03 -07:00
parent 9c9b930aa3
commit b73e5651c2
+5
View File
@@ -9,6 +9,11 @@ openbadge_file="$2"
# halp string # 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" 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 # maek sure da args are in place or print help and fail
if [ -z "$provided_credential" -o -z "$openbadge_file" ]; then if [ -z "$provided_credential" -o -z "$openbadge_file" ]; then
echo -e "\nERROR: must provide the credential and the file path" echo -e "\nERROR: must provide the credential and the file path"