mirror of
https://github.com/vagrant-libvirt/vagrant-libvirt.git
synced 2025-02-25 18:55:27 -06:00
Fix entrypoint.sh determining user based on Vagrantfile ownership
In the entrypoint.sh script, the "$1" variable was used incorrectly when determining default user based on the ownership of the vagrantfile (or parents). The "$vagrantfile" variable should have been used instead, as it was just set. Signed-off-by: SG <13872653+mmguero@users.noreply.github.com>
This commit is contained in:
@@ -33,7 +33,7 @@ esac
|
||||
# from the current working directory anyway
|
||||
vagrantfile="${VAGRANT_VAGRANTFILE:-Vagrantfile}"
|
||||
path="$(pwd)"
|
||||
while [[ "$path" != "" && ! -e "$path/$1" ]]
|
||||
while [[ "$path" != "" && ! -e "$path/$vagrantfile" ]]
|
||||
do
|
||||
path=${path%/*}
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user