Skip to content
This repository has been archived by the owner on Jun 1, 2024. It is now read-only.

Commit

Permalink
Added some spacing for cleaner output.
Browse files Browse the repository at this point in the history
  • Loading branch information
homebysix committed Nov 2, 2016
1 parent 1f703cc commit f8fa851
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Exercise5c/auto_update_magic.sh
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,9 @@ for (( i = 0; i < RECIPE_COUNT; i++ )); do
echo "[ERROR] An error occurred while calling the policy:"
echo "$MAGIC_OUTPUT"
elif echo "$MAGIC_OUTPUT" | grep -q "No policies were found"; then
echo "${TRIGGERS[$i]} does not need updating."
echo " ${TRIGGERS[$i]} does not need updating."
elif echo "$MAGIC_OUTPUT" | grep -q "Executing Policy Auto Update"; then
echo "${TRIGGERS[$i]} updated successfully."
echo " ${TRIGGERS[$i]} updated successfully."
DO_RECON=true
fi

Expand All @@ -184,6 +184,7 @@ done # End iterating through recipes.

# If any app was successfully updated, perform a recon when finished.
if [[ $DO_RECON == true ]]; then
echo " " # for some visual separation before recon runs
if [[ $DEBUG_MODE == false ]]; then
$jamf recon
else
Expand Down

0 comments on commit f8fa851

Please sign in to comment.