diff --git a/lib/autoparts/commands/init.rb b/lib/autoparts/commands/init.rb index b66065a..7dfc6ec 100644 --- a/lib/autoparts/commands/init.rb +++ b/lib/autoparts/commands/init.rb @@ -46,7 +46,7 @@ def show_help # Load environment variables for Autoparts automatically by # adding the following to #{profile} - eval "$(parts env)" + eval "$(parts init -)" STR end diff --git a/script/setup_buildenv b/script/setup_buildenv index 9f971fd..e88900a 100755 --- a/script/setup_buildenv +++ b/script/setup_buildenv @@ -47,5 +47,5 @@ urlencoding_mode = normal use_https = False verbosity = WARNING" > /home/action/.s3cfg -eval "$(parts env)" +eval "$(parts init -)" exec /bin/bash diff --git a/setup.rb b/setup.rb index 9127ab3..fee2d29 100644 --- a/setup.rb +++ b/setup.rb @@ -26,7 +26,7 @@ def inject_parts_init(path) file = File.read(path) File.open(path, 'a') do |f| export_path = "export PATH=\"$HOME/#{relative_autoparts_bin_path}:$PATH\"\n" - parts_init = "eval \"$(parts env)\"\n" + parts_init = "eval \"$(parts init -)\"\n" f.write "\n" f.write export_path unless file.include? export_path f.write parts_init unless file.include? parts_init