From 2caf01b722c6febf98bb8702e225dc032b08534f Mon Sep 17 00:00:00 2001 From: JRGTH Date: Wed, 14 Jul 2021 16:50:35 -0400 Subject: [PATCH] Cosmetics changes to prevent double "/" --- usr/local/share/bastille/cp.sh | 2 +- usr/local/share/bastille/mount.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/usr/local/share/bastille/cp.sh b/usr/local/share/bastille/cp.sh index 2d486ece..063c506c 100644 --- a/usr/local/share/bastille/cp.sh +++ b/usr/local/share/bastille/cp.sh @@ -66,7 +66,7 @@ esac for _jail in ${JAILS}; do info "[${_jail}]:" bastille_jail_path="${bastille_jailsdir}/${_jail}/root" - cp "${OPTION}" "${CPSOURCE}" "${bastille_jail_path}/${CPDEST}" + cp "${OPTION}" "${CPSOURCE}" "${bastille_jail_path}${CPDEST}" RETURN="$?" if [ "${TARGET}" = "ALL" ]; then # Display the return status for reference diff --git a/usr/local/share/bastille/mount.sh b/usr/local/share/bastille/mount.sh index 298d42a3..0ccacf5f 100644 --- a/usr/local/share/bastille/mount.sh +++ b/usr/local/share/bastille/mount.sh @@ -93,7 +93,7 @@ for _jail in ${JAILS}; do info "[${_jail}]:" ## aggregate variables into FSTAB entry - _jailpath="${bastille_jailsdir}/${_jail}/root/${_jailpath}" + _jailpath="${bastille_jailsdir}/${_jail}/root${_jailpath}" _fstab_entry="${_hostpath} ${_jailpath} ${_type} ${_perms} ${_checks}" ## Create mount point if it does not exist. -- cwells