diff --git a/cleanup/ad-guid-unmigration.sh b/cleanup/ad-guid-unmigration.sh index 731646962e9..55bd4b94a57 100755 --- a/cleanup/ad-guid-unmigration.sh +++ b/cleanup/ad-guid-unmigration.sh @@ -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 -- "$@") @@ -198,6 +206,7 @@ then fi fi + read -p "Do you want to continue? (y/n): " choice if [[ ! $choice =~ ^[Yy]$ ]]; then echo "Exiting..."