This repository has been archived by the owner on May 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 332
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(client): upgrade shell scripts and replace docker image links (#495
- Loading branch information
Showing
4 changed files
with
45 additions
and
26 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
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,27 @@ | ||
#!/bin/bash | ||
|
||
RED='\033[1;31m' | ||
NC='\033[0m' # No Color | ||
|
||
print_error() { | ||
local msg="$1" | ||
echo -e "${RED}$msg${NC}" | ||
} | ||
|
||
check_env() { | ||
local name="$1" | ||
local value="${!name}" | ||
|
||
if [ -z "$value" ]; then | ||
print_error "$name not set in env" | ||
exit 1 | ||
fi | ||
} | ||
|
||
check_command() { | ||
if ! command -v "$1" &> /dev/null; then | ||
print_error "$1 could not be found" | ||
exit | ||
fi | ||
} | ||
|