Skip to content

Commit

Permalink
tweaked
Browse files Browse the repository at this point in the history
  • Loading branch information
jimscard committed Aug 28, 2023
1 parent 849495d commit 0925ae3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"editor.acceptSuggestionOnEnter": "on"
}
7 changes: 4 additions & 3 deletions isc2chk.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
# This code snippet is a bash script that takes a person's name and (ISC)2 ID number as input and checks their status using the (ISC)2 Member verification page. The script sends a POST request to the API endpoint with the provided information
# ---isc2chk.sh
# Script takes person's name and (ISC)2 ID number and checks their status
# using the (ISC)2 Member verification page. The results aren't formatted, but
Expand All @@ -11,9 +12,9 @@
#
# Script by Jim Scardelis u/jimscard
#
JQ=$(which jq) #get location of jq if it's installed.
JQ=$(which jq) #get location of jq if it's installed.

case "$#" in # Check how many parameters were supplied
case "$#" in # Check how many parameters were supplied
3) # 3 is the max, they gave the first name too
fname=$1
lname=$2
Expand All @@ -25,7 +26,7 @@ case "$#" in # Check how many parameters were supplied
id=$2
;;
*)
echo Usage: "${0##*/}" [fname] lname ISC2ID
echo "Usage: \"${0##*/}\" [fname] lname ISC2ID"
exit 1
;;
esac
Expand Down

0 comments on commit 0925ae3

Please sign in to comment.