mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
Fix bug in vagrant options handling (#3975)
This commit is contained in:
@@ -2,12 +2,13 @@
|
||||
#
|
||||
# This is a Vagrant launcher file. To set up the configuration, use command line arguments to compile.sh
|
||||
|
||||
# remove "vagrant" from the command line
|
||||
shift
|
||||
# While we are in config-vagrant.conf, we no longer need "vagrant" option
|
||||
# So if "vagrant" wasn't removed from the command line by caller, we do it now
|
||||
[[ "$1" == "vagrant" ]] && shift
|
||||
|
||||
# second argument can be a build parameter or a config file
|
||||
unset VAGRANT_CONF
|
||||
[[ $1 != *=* ]] && VAGRANT_CONF=$1
|
||||
[[ $1 != *=* ]] && VAGRANT_CONF=$1 && shift
|
||||
|
||||
display_alert "Building and running the Vagrant box"
|
||||
VAGRANT_INSTALL_LOCAL_PLUGINS=1 vagrant up || vagrant up
|
||||
|
||||
Reference in New Issue
Block a user