vagrant/provisioners/upload_globals.sh in pwn-0.4.405 vs vagrant/provisioners/upload_globals.sh in pwn-0.4.406
- old
+ new
@@ -8,10 +8,10 @@
else
sudo apt update && sudo apt install -y screen apt-utils
fi
sudo tee -a $pwn_env_file << EOF
-export PWN_ROOT='/opt/pwn'
+export PWN_ROOT=\$(ruby -r pwn -e 'puts "#{Gem.path.first}/gems/pwn-#{PWN::VERSION}"')
export PWN_PROVIDER='${pwn_provider}'
EOF
sudo tee -a /etc/profile.d/globals.sh << 'EOF'
#!/bin/bash --login