fbt: fbtenv_chck_many_source, fix typos + grep logic (#1699)
Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
parent
1853359d78
commit
97b27261d5
@ -64,13 +64,13 @@ fbtenv_check_sourced()
|
|||||||
|
|
||||||
fbtenv_chck_many_source()
|
fbtenv_chck_many_source()
|
||||||
{
|
{
|
||||||
if ! echo "${PS1:-""}" | grep -q "[fbt]"; then
|
if ! echo "${PS1:-""}" | grep -qF "[fbt]"; then
|
||||||
if ! echo "${PROMPT:-""}" | grep -q "[fbt]"; then
|
if ! echo "${PROMPT:-""}" | grep -qF "[fbt]"; then
|
||||||
return 0;
|
return 0;
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
echo "Warning! It script seen to be sourced more then once!";
|
echo "Warning! FBT environment script sourced more than once!";
|
||||||
echo "It may signalise what you are making some mistakes, please open a new shell!";
|
echo "This may signal that you are making mistakes, please open a new shell!";
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user