Artifact 4d96b9fc7949c607aacf5f946b96ab32eca4ab43c94ccc00ee720b06719be63c:
- File global/common.sh — part of check-in [b5f6f19923] at 2019-08-19 01:46:21 on branch trunk — updates, begin putting together error-handling mechanism (user: lexi, size: 295) [annotate] [blame] [check-ins using]
me=$0 say() { echo >&2 "[1m($me)[21m $1"; } has() { which $1 >/dev/null 2>&1; return $?; } check() { var=$1 test "${!var}" == "" || return 0 say "we were not able to detect a default value for the configuration variable \$$var. please set this variable to $2 and try again." exit 1 }