mirror of
https://gh.wpcy.net/https://github.com/aspirepress/AspireSync.git
synced 2026-05-30 23:44:03 +08:00
24 lines
346 B
Bash
24 lines
346 B
Bash
# This file should be sourced, not run
|
|
[[ -n $TRACE ]] && [[ $TRACE != 0 ]] && set -x
|
|
|
|
APP_SERVICE=${APP_SERVICE:-webapp}
|
|
|
|
set -o errexit
|
|
|
|
cd $(dirname $0)/../..
|
|
base=$(pwd)
|
|
|
|
function warn {
|
|
echo "$@" >&2
|
|
}
|
|
|
|
function die() {
|
|
warn "$@"
|
|
exit 1
|
|
}
|
|
|
|
function RUN() {
|
|
[[ -n $DRY_RUN ]] && [[ $DRY_RUN != 0 ]] && _run=echo
|
|
$_run "$@"
|
|
}
|
|
|