cloudfoundry/warden

View on GitHub
warden/root/insecure/skeleton/run.sh

Summary

Maintainability
Test Coverage
#!/bin/bash

[ -n "$DEBUG" ] && set -o xtrace
set -o nounset
set -o errexit
shopt -s nullglob

cd $(dirname "$0")

touch pids/$$

# Run script with PWD=root
cd root

# Replace process with bash interpreting stdin
exec setsid env -i bash