From b73e5651c26794f624b08b1ebb6fe85783b57fa1 Mon Sep 17 00:00:00 2001 From: PrincessPi3 Date: Mon, 17 Nov 2025 21:01:03 -0700 Subject: [PATCH] add jq to install script and improved cxheckbadge with profile name --- customscripts/checkbadge | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/customscripts/checkbadge b/customscripts/checkbadge index fb47e28..d74817c 100644 --- a/customscripts/checkbadge +++ b/customscripts/checkbadge @@ -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 \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"