13 lines
193 B
Bash
Executable file
13 lines
193 B
Bash
Executable file
#!/bin/sh
|
|
#
|
|
# List jails
|
|
# Usage: list
|
|
#
|
|
|
|
set -eu
|
|
|
|
LIBDIR="$(dirname $0)" && . "${LIBDIR}/config"
|
|
|
|
[ -d "${JAILDIR}" ] || exit 0
|
|
find "${JAILDIR}" -mindepth 1 -maxdepth 1 -type d|sed 's!.*/!!'
|