File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1010
1111set -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
1818line () { echo -e " \e[${3:- 0} ;$2 m$1 \e[0m" ; if [[ " $4 " != " " ]]; then exit $4 ; fi }
1919error () { line " $1 " 31 0 $2 ; }
2020ok () { line " ${1:- Done} " 32 0 $2 ; }
2121info () { line " $1 " 33 0 $2 ; }
2222comment () { line " $1 " 30 1 $2 ; }
2323
24- qgit () { git " $@ " & >> $TMP_LOG ; }
24+ qgit () { git " $@ " >> $TMP_LOG ; }
2525
2626# github api
2727github ()
@@ -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
You can’t perform that action at this time.
0 commit comments