-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add stripe-checks for other kcd products
- Loading branch information
1 parent
b82b2c6
commit 2cf030c
Showing
6 changed files
with
54 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
|
||
# Expected stripe display name | ||
EXPECTED_STRING="KCD Training" | ||
|
||
# Currently connected stripe display name | ||
COMMAND_OUTPUT=$( | ||
stripe config --list | grep '^display_name' | awk -F'=' '{print $2}' | xargs | ||
) | ||
|
||
# Compare the expected string with the command output | ||
if [ "$EXPECTED_STRING" = "$COMMAND_OUTPUT" ]; then | ||
exit 0 # exit with status 0, indicating success/match | ||
else | ||
echo "Mismatched Stripe accounts, expected $EXPECTED_STRING, got $COMMAND_OUTPUT." | ||
exit 1 # exit with status 1, indicating failure/no match | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
|
||
# Expected stripe display name | ||
EXPECTED_STRING="KCD Training" | ||
|
||
# Currently connected stripe display name | ||
COMMAND_OUTPUT=$( | ||
stripe config --list | grep '^display_name' | awk -F'=' '{print $2}' | xargs | ||
) | ||
|
||
# Compare the expected string with the command output | ||
if [ "$EXPECTED_STRING" = "$COMMAND_OUTPUT" ]; then | ||
exit 0 # exit with status 0, indicating success/match | ||
else | ||
echo "Mismatched Stripe accounts, expected $EXPECTED_STRING, got $COMMAND_OUTPUT." | ||
exit 1 # exit with status 1, indicating failure/no match | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
|
||
# Expected stripe display name | ||
EXPECTED_STRING="Total TypeScript" | ||
|
||
# Currently connected stripe display name | ||
COMMAND_OUTPUT=$( | ||
stripe config --list | grep '^display_name' | awk -F'=' '{print $2}' | xargs | ||
) | ||
|
||
# Compare the expected string with the command output | ||
if [ "$EXPECTED_STRING" = "$COMMAND_OUTPUT" ]; then | ||
exit 0 # exit with status 0, indicating success/match | ||
else | ||
echo "Mismatched Stripe accounts, expected $EXPECTED_STRING, got $COMMAND_OUTPUT." | ||
exit 1 # exit with status 1, indicating failure/no match | ||
fi |