Skip to content

Commit

Permalink
read in the version file and remove the trailing new line in the vagr…
Browse files Browse the repository at this point in the history
…ant splash
  • Loading branch information
tomjn committed May 25, 2018
1 parent dc0a1bf commit 3010c84
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Vagrantfile
Expand Up @@ -16,6 +16,8 @@ yellow="\033[38;5;3m"#136m"
yellow_underlined="\033[4;38;5;3m"#136m"
url=yellow_underlined
creset="\033[0m"
versionfile = File.open("version", "r")
version = versionfile.read

# whitelist when we show the logo, else it'll show on global Vagrant commands
if [ 'up', 'halt', 'resume', 'suspend', 'status', 'provision', 'reload' ].include? ARGV[0] then
Expand All @@ -38,7 +40,7 @@ STARS
splash = <<-HEREDOC
\033[1;38;5;196m#{red}__ #{green}__ #{blue}__ __
#{red}\\ V#{green}\\ V#{blue}\\ V / #{red}Varying #{green}Vagrant #{blue}Vagrants
#{red} \\_/#{green}\\_/#{blue}\\_/ #{purple}v2.2.1#{creset}-#{branch_c}#{git_or_zip}#{branch}
#{red} \\_/#{green}\\_/#{blue}\\_/ #{purple}v#{version}#{creset}-#{branch_c}#{git_or_zip}#{branch}
#{docs}Docs: #{url}https://varyingvagrantvagrants.org/
#{docs}Contribute: #{url}https://github.com/varying-vagrant-vagrants/vvv
Expand Down
2 changes: 1 addition & 1 deletion version
@@ -1 +1 @@
2.2.2-develop
2.2.2-develop

0 comments on commit 3010c84

Please sign in to comment.