Skip to content

Commit

Permalink
swancustomenvs: Use echo instead of _log
Browse files Browse the repository at this point in the history
`_log` is not defined yet. As we don't need to store these definitions in the log file, we can go with `echo`
  • Loading branch information
rodrigo-sobral authored and etejedor committed Sep 19, 2024
1 parent beee407 commit 9837b63
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
CURRENT_ENV_NAME=$(find "/home/$USER" -type d -name "*_env" | head -n 1 | cut -d '/' -f4)
CURRENT_REPO_PATH=$(tail -n 1 "/home/$USER/.bash_profile" | cut -d ' ' -f2)
if [ -n "${CURRENT_ENV_NAME}" ]; then
_log "ENVIRONMENT_ALREADY_EXISTS:${CURRENT_ENV_NAME}"
_log "REPO_PATH:${CURRENT_REPO_PATH#$HOME}"
echo "ENVIRONMENT_ALREADY_EXISTS:${CURRENT_ENV_NAME}"
echo "REPO_PATH:${CURRENT_REPO_PATH#$HOME}"
exit 1
fi

Expand Down

0 comments on commit 9837b63

Please sign in to comment.