Files
nigiri/scripts/clean
Pietralberto Mazza 85da5c7864 Enhancements (#39)
* change paths

* add --project-directory to docker-compose command

* fix passing .env to compose

* add clean script

* remove comment

* fix get env path

* update README

* fix change paths
2019-05-16 23:21:43 +02:00

24 lines
427 B
Bash

#!/bin/bash
set -ex
PARENT_PATH=$(dirname $(cd $(dirname $0); pwd -P))
pushd $PARENT_PATH
case $OSTYPE in
darwin*) OS="darwin";;
linux-gnu*) OS="linux";;
*) echo "OS $OS not supported"; exit 1;;
esac
case $(uname -m) in
amd64) ARCH="amd64";;
x86_64) ARCH="amd64";;
*) echo "Architecture $ARCH not supported"; exit 1;;
esac
./build/nigiri-$OS-$ARCH stop --delete &>/dev/null
rm -rf build vendor ~/.nigiri
popd