Skip to content
Permalink
master
Go to file
 
 
Cannot retrieve contributors at this time
16 lines (14 sloc) 330 Bytes
## Copyright 2017 Clemens Fruhwirth <clemens@endorphin.org>
chpwd() {
[ -z "$PWDJAIL_EXIT_DIR" ] && return
case $PWD/ in
$HOME/*)
;;
*)
if [ -n "$PWDJAIL_EXIT_DIR" ]; then
# FIXME bring that to the fd passback mechanism from the jailer
echo $PWD > $PWDJAIL_EXIT_DIR
exit 0
fi
esac
}
You can’t perform that action at this time.