Skip to content

Commit

Permalink
fix: declare EVENTS array, script fullpath, log to TMP_LOG without await
Browse files Browse the repository at this point in the history
  • Loading branch information
adhocore committed Mar 3, 2021
1 parent d303ae8 commit d1a8663
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions please
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,18 @@

set -e

declare -A EVENTS
[[ "$(uname)" == "Darwin" ]] && declare -a EVENTS || declare -A EVENTS

FULL=$(readlink -f $0) # fullpath
PLIZ=$(basename $0) # name
FULL=$(readlink -n $0 || echo $0) # fullpath
PLIZ=$(basename $0) # name

line() { echo -e "\e[${3:-0};$2m$1\e[0m"; if [[ "$4" != "" ]]; then exit $4; fi }
error() { line "$1" 31 0 $2; }
ok() { line "${1:- Done}" 32 0 $2; }
info() { line "$1" 33 0 $2; }
comment() { line "$1" 30 1 $2; }

qgit() { git "$@" &>> $TMP_LOG; }
qgit() { git "$@" >> $TMP_LOG; }

# github api
github()
Expand Down Expand Up @@ -192,7 +192,7 @@ publish-npm()
fi

trigger before-npm
npm publish $PUBLIC &>> $TMP_LOG
npm publish $PUBLIC >> $TMP_LOG
ok
}

Expand Down

0 comments on commit d1a8663

Please sign in to comment.