mirror of
https://github.com/hackacad/bastille.git
synced 2025-12-24 19:22:26 +01:00
Improve bastille/cp return status
This commit is contained in:
@@ -172,4 +172,5 @@ if [ -f "${SCRIPTPATH}" ]; then
|
||||
else
|
||||
bastille_colors_pre
|
||||
echo -e "${COLOR_RED}${SCRIPTPATH} not found.${COLOR_RESET}" 1>&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user