#!/bin/bash

# Initialize an empty list for converted files
converted_files=()

# Loop through all .sh files in the current directory
for file in *.sh; do
    # Check if there are any .sh files
    if [[ -f "$file" ]]; then
        echo "Converting: $file"
        dos2unix "$file"
        converted_files+=("$file")
    fi
done

# Print the list of converted files
echo "Conversion completed for: ${converted_files[*]}"
