Improve bastille/cp return status

This commit is contained in:
Jose committed 2020-07-31 04:07:58 -04:00
1 parent 3872f93063
commit 709f00a2ac
2 files changed
+8 -2

No files matched your search

+7 -2
View File
@@ -61,6 +61,11 @@ fi
for _jail in ${JAILS}; do
bastille_jail_path="$(jls -j "${_jail}" path)"
echo -e "${COLOR_GREEN}[${_jail}]:${COLOR_RESET}"
cp -av "${CPSOURCE}" "${bastille_jail_path}/${CPDEST}"
echo
# Add line break and return status
if cp -av "${CPSOURCE}" "${bastille_jail_path}/${CPDEST}"; then
echo
else
echo
false
fi
done