do not exit from the main shell when sourcing

This commit is contained in:
Radovan Garabík 2021-07-26 18:02:08 +02:00
parent 1d7de7ea44
commit e277b6e960
1 changed files with 1 additions and 1 deletions

2
grc.sh
View File

@ -2,7 +2,7 @@
[ -f /etc/default/grc ] && . /etc/default/grc
[ x$GRC_ALIASES = xtrue ] || exit 0
[ x$GRC_ALIASES = xtrue ] || return 0
GRC="$(which grc)"
if tty -s && [ -n "$TERM" ] && [ "$TERM" != dumb ] && [ -n "$GRC" ]; then