pip-micropython: Require command verb, but restrict to "install" only.
So, pip-micropython can/should be run as normal pip: pip-micropython install micropython-unittest
This commit is contained in:
parent
07e24a6294
commit
9f043da5c3
|
@ -6,6 +6,12 @@
|
||||||
# ports (if PIP_MICROPY_DEST environment var is set).
|
# ports (if PIP_MICROPY_DEST environment var is set).
|
||||||
#
|
#
|
||||||
|
|
||||||
|
if [ "$1" != "install" ]; then
|
||||||
|
echo "Only install command is supported currently"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
shift
|
||||||
|
|
||||||
if [ -n "$PIP_MICROPY_DEST" ]; then
|
if [ -n "$PIP_MICROPY_DEST" ]; then
|
||||||
dest="$PIP_MICROPY_DEST"
|
dest="$PIP_MICROPY_DEST"
|
||||||
echo "Destination snapshot directory: $dest"
|
echo "Destination snapshot directory: $dest"
|
||||||
|
|
Loading…
Reference in New Issue