diff options
Diffstat (limited to 'src/cli/install.sh')
-rw-r--r-- | src/cli/install.sh | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/cli/install.sh b/src/cli/install.sh index 1c47cde79..80a39d424 100644 --- a/src/cli/install.sh +++ b/src/cli/install.sh @@ -30,12 +30,12 @@ if test -t 1; then fi if ! command -v unzip >/dev/null; then - echo -e "\n${Red}error${Color_Off}: unzip is required to install Bun (see: https://github.com/Jarred-Sumner/bun#unzip-is-required)." 1>&2 + echo -e "\n${Red}error${Color_Off}: unzip is required to install bun (see: https://github.com/Jarred-Sumner/bun#unzip-is-required)." 1>&2 exit 1 fi if [ "$OS" = "Windows_NT" ]; then - echo "error: Please install Bun using Windows Subsystem for Linux." + echo "error: Please install bun using Windows Subsystem for Linux." exit 1 else case $(uname -sm) in @@ -53,7 +53,7 @@ if [ "$target" = "darwin-x64" ]; then sysctl sysctl.proc_translated >/dev/null 2>&1 if [ $? -eq 0 ]; then target="darwin-aarch64" - echo -e "$Dim Your shell is running in Rosetta 2. Downloading Bun for $target instead. $Color_Off" + echo -e "$Dim Your shell is running in Rosetta 2. Downloading bun for $target instead. $Color_Off" fi fi @@ -81,17 +81,17 @@ fi curl --fail --location --progress-bar --output "$exe.zip" "$bun_uri" if (($?)); then - echo -e "${Red}error${Color_Off}: Failed to download Bun from $bun_uri" 1>&2 + echo -e "${Red}error${Color_Off}: Failed to download bun from $bun_uri" 1>&2 exit 1 fi unzip -d "$bin_dir" -q -o "$exe.zip" if (($?)); then - echo -e "${Red}error${Color_Off}: Failed to extract Bun" 1>&2 + echo -e "${Red}error${Color_Off}: Failed to extract bun" 1>&2 exit 1 fi mv "$bin_dir/bun-${target}/bun" "$exe" if (($?)); then - echo -e "${Red}error${Color_Off}: Failed to extract Bun" 1>&2 + echo -e "${Red}error${Color_Off}: Failed to extract bun" 1>&2 exit 1 fi chmod +x "$exe" @@ -102,7 +102,7 @@ fi rmdir $bin_dir/bun-${target} rm "$exe.zip" -echo -e "${Green}Bun was installed successfully to ${BGreen}$exe$Color_Off" +echo -e "${Green}bun was installed successfully to ${BGreen}$exe$Color_Off" if command -v bun --version >/dev/null; then # Install completions, but we don't care if it fails @@ -116,7 +116,7 @@ if test $(basename $SHELL) == "fish"; then # Install completions, but we don't care if it fails IS_BUN_AUTO_UPDATE="true" SHELL="fish" $exe completions >/dev/null 2>&1 if test -f $HOME/.config/fish/config.fish; then - echo -e "\n# Bun\nset -Ux BUN_INSTALL \"$bun_install\"" >>"$HOME/.config/fish/config.fish" + echo -e "\n# bun\nset -Ux BUN_INSTALL \"$bun_install\"" >>"$HOME/.config/fish/config.fish" echo -e "set -px --path PATH \"$bin_dir\"\n" >>"$HOME/.config/fish/config.fish" echo "" echo -e "$Dim Added \"$bin_dir\" to \$PATH in \"\~/.config/fish/config.fish\"$Color_Off" @@ -141,7 +141,7 @@ then IS_BUN_AUTO_UPDATE="true" SHELL="zsh" $exe completions >/dev/null 2>&1 if test -f $HOME/.zshrc; then - echo -e "\n# Bun\nexport BUN_INSTALL=\"$bun_install\"" >>"$HOME/.zshrc" + echo -e "\n# bun\nexport BUN_INSTALL=\"$bun_install\"" >>"$HOME/.zshrc" echo -e "export PATH=\"\$BUN_INSTALL/bin:\$PATH\"" >>"$HOME/.zshrc" echo "" echo -e "$Dim Added \"$bin_dir\" to \$PATH in \"~/.zshrc\"$Color_Off" |