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

--- 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() {
[ $CI ] && {
__ERROR 'currently in CI, but __READ explicitly requires terminal input'
return 1
__INFO 'currently in CI, skipping __READ'
return 0
}
read $@ </dev/tty
}
__EDIT() {
[ $CI ] && {
__ERROR 'currently in CI, but __EDIT explicitly requires terminal input'
return 1
__INFO 'currently in CI, skipping __EDIT'
return 0
}
__STATUS "opening '$1' for editing"