diff options
author | Michael Boelen <michael.boelen@cisofy.com> | 2016-05-15 14:41:03 +0300 |
---|---|---|
committer | Michael Boelen <michael.boelen@cisofy.com> | 2016-05-15 14:41:03 +0300 |
commit | 26c67e4ec677980b169b2056dff0e5315c2735d1 (patch) | |
tree | 2b1723c0128202a9f8afba7c7435d0ebce5587d0 /include/helper_show | |
parent | 098f7685fc35ce8149b3107efd466b9e61b7dc4b (diff) |
Use full paths when local directory is used for includedir or dbdir
Diffstat (limited to 'include/helper_show')
-rw-r--r-- | include/helper_show | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/include/helper_show b/include/helper_show index 5e580f28..6cc9d0c3 100644 --- a/include/helper_show +++ b/include/helper_show @@ -132,11 +132,7 @@ if [ $# -gt 0 ]; then fi ;; "dbdir") - SHOW_DBDIR="${DBDIR}" - if [ "${DBDIR}" = "./db" ]; then - if [ -d ${WORKDIR}/db ]; then SHOW_DBDIR="${WORKDIR}/db"; fi - fi - ${ECHOCMD} "${SHOW_DBDIR}" + ${ECHOCMD} "${DBDIR}" ;; "help") if [ $# -eq 1 ]; then @@ -163,11 +159,7 @@ if [ $# -gt 0 ]; then fi ;; "includedir") - SHOW_INCLUDEDIR="${INCLUDEDIR}" - if [ "${INCLUDEDIR}" = "./include" ]; then - if [ -d ${WORKDIR}/include ]; then SHOW_INCLUDEDIR="${WORKDIR}/include"; fi - fi - ${ECHOCMD} "${SHOW_INCLUDEDIR}" + ${ECHOCMD} "${INCLUDEDIR}" ;; "license") ${ECHOCMD} "${PROGRAM_LICENSE}" ;; "man") ${ECHOCMD} "Use ./lynis --man or man lynis" ;; |