Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: Allow running 'vfox use' inside shell scripts #320

Open
tsmgodoi opened this issue Jul 2, 2024 · 2 comments
Open

[Feature]: Allow running 'vfox use' inside shell scripts #320

tsmgodoi opened this issue Jul 2, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@tsmgodoi
Copy link

tsmgodoi commented Jul 2, 2024

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.

@tsmgodoi tsmgodoi added the enhancement New feature or request label Jul 2, 2024
@aooohan
Copy link
Member

aooohan commented Jul 3, 2024

#253

Did you hook vfox into bash?

@tsmgodoi
Copy link
Author

#253

Did you hook vfox into bash?

Yes, I did.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants