10
0
mirror of https://github.com/LCPQ/quantum_package synced 2024-06-02 03:15:29 +02:00

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") "create_ezfio_from_xyz")
shift shift
# Replace ':' by spaces # Replace ':' by spaces
for arg in $@ ; do for arg in "$@" ; do
case $arg in case $arg in
-*) *:*)
_ARGS+=("${arg}") ;; _ARGS+=("\"${arg//:/ }\"") ;;
*) *)
_ARGS+=("\"${arg//:/ }\"") ;; _ARGS+=("${arg}") ;;
esac esac
done 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 if [[ -d $NAME ]] ; then
[[ -d $EZFIO_FILE ]] && ezfio unset_file [[ -d $EZFIO_FILE ]] && ezfio unset_file
ezfio set_file $NAME ezfio set_file $NAME