Fixed qp_create

This commit is contained in:
Anthony Scemama 2019-01-15 01:26:01 +01:00
parent 5455163c2f
commit 2d77f94d91
2 changed files with 24 additions and 6 deletions

View File

@ -0,0 +1,17 @@
.. _qp_update:
=========
qp_update
=========
.. program:: qp_update
This command makes an update of the |QP| to the latest stable version.
Usage
-----
.. code:: bash
qp_update [-h]

View File

@ -50,15 +50,16 @@ function qp()
"create_ezfio_from_xyz")
shift
# Replace ':' by spaces
for arg in $@ ; do
for arg in "$@" ; do
case $arg in
-*)
_ARGS+=("${arg}") ;;
*)
_ARGS+=("\"${arg//:/ }\"") ;;
*:*)
_ARGS+=("\"${arg//:/ }\"") ;;
*)
_ARGS+=("${arg}") ;;
esac
done
NAME=$(eval "qp_create_ezfio_from_xyz ${_ARGS[@]}")
echo qp_create_ezfio_from_xyz "${_ARGS[@]}"
NAME=$(qp_create_ezfio_from_xyz "${_ARGS[@]}")
if [[ -d $NAME ]] ; then
[[ -d $EZFIO_FILE ]] && ezfio unset_file
ezfio set_file $NAME