Files
nigiri/scripts/clean
Pietralberto Mazza e266a82dca Tests (#44)
* use uname -s instead of $OSTYPE

* tests
2019-05-21 15:39:32 +02:00

24 lines
425 B
Bash

#!/bin/bash
set -ex
PARENT_PATH=$(dirname $(cd $(dirname $0); pwd -P))
pushd $PARENT_PATH
case $(uname -s) in
Darwin) OS="darwin";;
Linux) 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