vagrant/provisioners/upload_globals.sh in pwn-0.4.411 vs vagrant/provisioners/upload_globals.sh in pwn-0.4.412

- old
+ new

@@ -10,11 +10,15 @@ fi sudo tee -a $pwn_env_file << EOF export PWN_ROOT=\$( source /etc/profile.d/rvm.sh; \ - ruby -r pwn -e 'puts "#{Gem.path.first}/gems/pwn-#{PWN::VERSION}"' \ - 2> /dev/null + if [[ -d '/opt/pwn' ]]; then \ + printf '/opt/pwn'; \ + else \ + ruby -r pwn -e 'puts "#{Gem.path.first}/gems/pwn-#{PWN::VERSION}"' \ + 2> /dev/null; \ + fi ) export PWN_PROVIDER='${pwn_provider}' EOF sudo tee -a /etc/profile.d/globals.sh << 'EOF'