mirror of
https://github.com/asdf-vm/asdf.git
synced 2024-11-15 01:28:17 -07:00
Avoid bash error when no version is set
Running "asdf current ruby" before installing any Rubies gave me: /Users/henrik/.asdf/lib/utils.sh: line 73: [: !=: unary operator expected No version set for ruby
This commit is contained in:
parent
75eb1fbf3a
commit
d7ceb38b06
@ -68,7 +68,7 @@ check_if_version_exists() {
|
||||
|
||||
check_if_plugin_exists $plugin_name
|
||||
|
||||
if [ $version != "system" ] && [ ! -d $version_dir ]; then
|
||||
if [ "$version" != "system" ] && [ ! -d $version_dir ]; then
|
||||
display_error "version $version is not installed for $plugin_name"
|
||||
exit 1
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user