diff --git a/bin/deployit b/bin/deployit index 83fefa1..3a5a973 100755 --- a/bin/deployit +++ b/bin/deployit @@ -21,7 +21,7 @@ PROTOTYPER=$(basename $PWD) fleet-ps | grep -B 2 "${PROTOTYPER}/" | grep pid | cut -d " " -f 2 | xargs fleet-stop # cleanup other commits -fleet-exec -- bash -c "ls .. | grep ${PROTOTYPER} | grep -v \$(basename \${PWD}) | xargs -Icommit rm -rf ../commit" +fleet-exec -- bash -c "ls .. | grep ${PROTOTYPER}. | grep -v \$(basename \${PWD}) | xargs -Icommit rm -rf ../commit" # start new # not using 'npm start' because when killed it doesn't kill its children (server.js)