Skip to content

Commit

Permalink
Echoing the set options at the end of the banner
Browse files Browse the repository at this point in the history
  • Loading branch information
crobby committed Aug 15, 2023
1 parent 089412c commit ce1feb4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions cleanup/ad-guid-unmigration.sh
Expand Up @@ -134,6 +134,14 @@ display_banner() {
echo "$border"
printf "%-${text_width}s \n" "$text"
echo "$border"
echo "Dry run: $dry_run"
echo "Delete missing: $delete_missing"
echo "Agent image: $agent_image"
if [[ "$dry_run" = true ]] && [[ "$delete_missing" = true ]]
then
echo "Setting the dry-run option to true overrides the delete-missing option. NO CHANGES WILL BE MADE."
fi
echo "$border"
}

OPTS=$(getopt -o hnd -l help,dry-run,delete-missing -- "$@")
Expand Down Expand Up @@ -198,6 +206,7 @@ then
fi
fi


read -p "Do you want to continue? (y/n): " choice
if [[ ! $choice =~ ^[Yy]$ ]]; then
echo "Exiting..."
Expand Down

0 comments on commit ce1feb4

Please sign in to comment.