vfox
vfox copied to clipboard
[Feature]: Allow running 'vfox use' inside shell scripts
1. Your usage scenarios?
I want to use vfox on setup scripts and on CI environments. But I've noticed I can't run it inside a shell script file (for example, a file named script.sh):
#/bin/bash
set -e
vfox use java@17
java --version
It will issue an error if I run it: java: command not found
If I run the script again, after the first error, it will run successfully this time.
2. What is your expected outcome?
I should be able to run vfox use and use the sdk version after that inside a shell script.
https://github.com/version-fox/vfox/issues/253
Did you hook vfox into bash?
#253
Did you hook
vfoxinto bash?
Yes, I did.