mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
DOPS-602: Change how mmctl gets packaged and locally fetched. (#18335)
* DOPS-602: Change how mmctl gets packaged and locally fetched.
This commit is contained in:
20
scripts/mmctl-dev.sh
Executable file
20
scripts/mmctl-dev.sh
Executable file
@@ -0,0 +1,20 @@
|
||||
#!/usr/bin/env bash
|
||||
set -xe
|
||||
|
||||
if [[ "$(basename "$PWD")" != "mattermost-server" ]]; then
|
||||
echo "please run this script from the root project folder of mattermost-server with ./scripts/mmctl-dev.sh"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ ! -d "../mmctl" ]; then
|
||||
echo "please clone mmctl as a companion repository on the same level next to mattermost-server (git@github.com:mattermost/mmctl.git)"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
cd ../mmctl
|
||||
make build
|
||||
cd -
|
||||
|
||||
cp ../mmctl/mmctl bin/mmctl
|
||||
|
||||
./bin/mmctl version
|
||||
Reference in New Issue
Block a user