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:
SG
2021-09-13 08:42:22 -06:00
parent b49b1991b9
commit 75467924e1

View File

@@ -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