diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-04-06 23:46:18 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-04-07 02:53:41 +0300 |
commit | 9f043da5c348602df23f9d80d12dd282fe5981fd (patch) | |
tree | b66584ab2b2271c5040a78ea1908a9b52e53c598 /tools | |
parent | 07e24a629477246fb8f363071880e4a2c9cabeb7 (diff) | |
download | micropython-9f043da5c348602df23f9d80d12dd282fe5981fd.tar.gz micropython-9f043da5c348602df23f9d80d12dd282fe5981fd.zip |
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
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/pip-micropython | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/pip-micropython b/tools/pip-micropython index e27e859425..fab8809839 100755 --- a/tools/pip-micropython +++ b/tools/pip-micropython @@ -6,6 +6,12 @@ # 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 dest="$PIP_MICROPY_DEST" echo "Destination snapshot directory: $dest" |