You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
install.sh adds unprotected enable command to .bashrc, causing warnings on source ~/.bashrc #907
When installing Flyline via the install.sh script, the raw command enable -f ${LIB_PATH} flyline is appended directly to ~/.bashrc.
If a user manually reloads their shell configurations later using source ~/.bashrc, Bash throws the following warning because it attempts to re-load an already active dynamic builtin:
But to be fair, I really don't understand why the install script is executed by sh, since Flyline is for bash.
It would have gone for . <(curl -sSfL https://github.com/HalFrgrd/flyline/releases/latest/download/install.sh)
Same shell, directly ask Bash what version it is on. And much easier to write the entire script than using the POXIS shell, where you have to call a bunch of external commands.
But to be fair, I really don't understand why the install script is executed by sh, since Flyline is for bash. It would have gone for . <(curl -sSfL https://github.com/HalFrgrd/flyline/releases/latest/download/install.sh)
I guess the dev wanted to make it universally available since Bash is not installed by default on all systems (such as minimal Alpine Linux containers, FreeBSD, or bare-bones macOS instances)
Thanks for the tips! Ive updated the installer to use a guard around the enable command and suggesting people run it in bash so that it loads in the current shell.
Thanks for the tips! Ive updated the installer to use a guard around the enable command and suggesting people run it in bash so that it loads in the current shell.
Activity
RVC2020 commentedon Aug 11, 2026
An even simpler solution.
ENABLE_CMD='[[ $(type -t flyline) != builtin ]] && enable -f '"$LIB_PATH"' flyline'But to be fair, I really don't understand why the install script is executed by
sh, since Flyline is for bash.It would have gone for
. <(curl -sSfL https://github.com/HalFrgrd/flyline/releases/latest/download/install.sh)Same shell, directly ask Bash what version it is on. And much easier to write the entire script than using the POXIS shell, where you have to call a bunch of external commands.
ravvenox commentedon Aug 12, 2026
I guess the dev wanted to make it universally available since Bash is not installed by default on all systems (such as minimal Alpine Linux containers, FreeBSD, or bare-bones macOS instances)
HalFrgrd commentedon Aug 13, 2026
Thanks for the tips! Ive updated the installer to use a guard around the enable command and suggesting people run it in bash so that it loads in the current shell.
ravvenox commentedon Aug 15, 2026
Your response to issues is much appreciated.