Skip to content

Commit d1a8663

Browse files
committed
fix: declare EVENTS array, script fullpath, log to TMP_LOG without await
1 parent d303ae8 commit d1a8663

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

please

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,18 @@
1010

1111
set -e
1212

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

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

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

24-
qgit() { git "$@" &>> $TMP_LOG; }
24+
qgit() { git "$@" >> $TMP_LOG; }
2525

2626
# github api
2727
github()
@@ -192,7 +192,7 @@ publish-npm()
192192
fi
193193

194194
trigger before-npm
195-
npm publish $PUBLIC &>> $TMP_LOG
195+
npm publish $PUBLIC >> $TMP_LOG
196196
ok
197197
}
198198

0 commit comments

Comments
 (0)