Skip to content

Commit

Permalink
Fix issue with "nexport" warnings in babun
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexei Chekulaev committed May 26, 2017
1 parent 7fd8cbe commit ba216b9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bin/fin
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

FIN_VERSION=1.9.2
FIN_VERSION=1.9.3

# Console colors
red='\033[0;91m'
Expand Down Expand Up @@ -2452,9 +2452,11 @@ install_tools_windows ()
mkdir -p "$CONFIG_DOWNLOADS_DIR" 2>/dev/null
if_failed "Could not create $CONFIG_DOWNLOADS_DIR"

# Remove old incorrect line
sed -i "s/^\\\\nexport.*$//" "$HOME/.babunrc"
# Disable Babun update checks as they often bring problems
if ! (grep '^export DISABLE_CHECK_ON_STARTUP="true"' "$HOME/.babunrc" >/dev/null 2>&1); then
echo "\n"'export DISABLE_CHECK_ON_STARTUP="true"' >> "$HOME/.babunrc"
echo -e "\n"'export DISABLE_CHECK_ON_STARTUP="true"' >> "$HOME/.babunrc"
fi

if ! is_docker_native; then
Expand Down

0 comments on commit ba216b9

Please sign in to comment.