=====================================================================

--- Bug Fixes ----------------------------

- __READ and __EDIT no longer fail on CI, just skip
This commit is contained in:
Wryn (yage) Wagner 2022-08-18 19:48:10 -06:00
parent 244c188deb
commit 710d42e248

View File

@ -92,16 +92,16 @@ __FZF_TAIL() { __FZF $@ --print-query | sed '/^$/d' | tail -n1; } # prefer selec
__READ() { __READ() {
[ $CI ] && { [ $CI ] && {
__ERROR 'currently in CI, but __READ explicitly requires terminal input' __INFO 'currently in CI, skipping __READ'
return 1 return 0
} }
read $@ </dev/tty read $@ </dev/tty
} }
__EDIT() { __EDIT() {
[ $CI ] && { [ $CI ] && {
__ERROR 'currently in CI, but __EDIT explicitly requires terminal input' __INFO 'currently in CI, skipping __EDIT'
return 1 return 0
} }
__STATUS "opening '$1' for editing" __STATUS "opening '$1' for editing"