mirror of
https://github.com/hackacad/bastille.git
synced 2026-01-02 10:49:48 +01:00
Display return status on bastille cp batch/loop
This commit is contained in:
@@ -61,11 +61,13 @@ fi
|
||||
for _jail in ${JAILS}; do
|
||||
bastille_jail_path="$(jls -j "${_jail}" path)"
|
||||
echo -e "${COLOR_GREEN}[${_jail}]:${COLOR_RESET}"
|
||||
# Add line break and return status
|
||||
if cp -av "${CPSOURCE}" "${bastille_jail_path}/${CPDEST}"; then
|
||||
echo
|
||||
cp -av "${CPSOURCE}" "${bastille_jail_path}/${CPDEST}"
|
||||
RETURN="$?"
|
||||
if [ "${TARGET}" = "ALL" ]; then
|
||||
# Display the return status for reference
|
||||
echo -e "Returned: ${RETURN}\n"
|
||||
else
|
||||
echo
|
||||
false
|
||||
return "${RETURN}"
|
||||
fi
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user