0.3.20181114 fix all the things

This commit is contained in:
Christer Edwards
2018-11-13 21:40:11 -07:00
parent 2533f44187
commit 8b7fb790e4
12 changed files with 36 additions and 25 deletions
+14 -1
View File
@@ -29,9 +29,10 @@
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
. /usr/local/share/bastille/colors.pre.sh
. /usr/local/etc/bastille/bastille.conf
usage() {
echo -e "${COLOR_RED}Usage: bastille list.${COLOR_RESET}"
echo -e "${COLOR_RED}Usage: bastille list [release|template|jail|log].${COLOR_RESET}"
exit 1
}
@@ -45,6 +46,18 @@ if [ $# -gt 0 ]; then
help|-h|--help)
usage
;;
release|releases)
ls "${bastille_releasesdir}"
;;
template|templates)
ls "${bastille_templatesdir}"
;;
jail|jails)
ls "${bastille_jailsdir}"
;;
log|logs)
ls "${bastille_logsdir}"
;;
*)
usage
;;