alexz 3f7ec09847 Shell files syntax cleanup
* add SC2001 to shellcheck skip-list
* few functions from CloudFoundryDiego application was changed -
  manual deployment test requeired

Change-Id: Ib7b223553bdfc14f7051911d7ed0e4076c6aebb0
2016-07-29 09:05:33 +00:00

5 lines
125 B
Bash

#!/bin/bash
NODE_ID=$(/opt/bin/etcdctl member list | grep "$1" | cut -d':' -f1)
/opt/bin/etcdctl member remove "${NODE_ID}"