mirror of
https://github.com/LCPQ/quantum_package
synced 2024-10-19 14:31:44 +02:00
Fixed qp_create
This commit is contained in:
parent
5455163c2f
commit
2d77f94d91
17
docs/source/users_guide/qp_update.rst
Normal file
17
docs/source/users_guide/qp_update.rst
Normal 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]
|
||||
|
13
etc/qp.rc
13
etc/qp.rc
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user