mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-17 15:35:09 +00:00
* Import Full Stack Asset Transfer Guide at commit fb554befdbbeff9e69159b54fce0b811603f29c7 Signed-off-by: Josh Kneubuhl <jkneubuh@us.ibm.com> * Update the workshop with a new WORKSHOP_PATH under fabric-samples Signed-off-by: Josh Kneubuhl <jkneubuh@us.ibm.com> * Update the workshop with a new WORKSHOP_PATH under fabric-samples Signed-off-by: Josh Kneubuhl <jkneubuh@us.ibm.com> * missed a .git ignored directory on add Signed-off-by: Josh Kneubuhl <jkneubuh@us.ibm.com> * Updates to run the workshop on the Apple M1 Signed-off-by: Josh Kneubuhl <jkneubuh@us.ibm.com> * Workaround for https://github.com/eslint/eslint/issues/15299 in the contract tslinter Signed-off-by: Josh Kneubuhl <jkneubuh@us.ibm.com> * Build an arch-specific CC images on M1 Signed-off-by: Josh Kneubuhl <jkneubuh@us.ibm.com> * empty commit - force a build Signed-off-by: Josh Kneubuhl <jkneubuh@us.ibm.com> * revert an accidental commit that was building the top-level asset-transfer as arm64 Signed-off-by: Josh Kneubuhl <jkneubuh@us.ibm.com> Signed-off-by: Josh Kneubuhl <jkneubuh@us.ibm.com>
39 lines
No EOL
630 B
Bash
39 lines
No EOL
630 B
Bash
#!/bin/bash
|
|
#
|
|
# Copyright IBM Corp All Rights Reserved
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
SUCCESS="✅"
|
|
WARN="⚠️ "
|
|
|
|
# tests if varname is defined in the env AND it's an existing directory
|
|
function must_declare() {
|
|
local varname=$1
|
|
|
|
if [[ ${!varname+x} ]]
|
|
then
|
|
printf "%s %-40s%s\n" $SUCCESS $varname ${!varname}
|
|
else
|
|
printf "%s %-40s\n" ${WARN} $varname
|
|
EXIT=1
|
|
fi
|
|
}
|
|
|
|
|
|
function check() {
|
|
local name=$1
|
|
local message=$2
|
|
|
|
printf "🤔 %s" $name
|
|
|
|
if $name &>/dev/null ; then
|
|
printf "\r%s %-40s" $SUCCESS $name
|
|
else
|
|
printf "\r%s %-40s" $WARN $name
|
|
EXIT=1
|
|
fi
|
|
|
|
echo $message
|
|
} |