cd gen_treeinfo
versions="8 9"
repolist="AppStream PowerTools CRB Desktop HighAvailability ResilientStorage"
architectures="x86_64 aarch64"
for version in $versions; do 
    for reponame in $repolist; do 
        for architecture in $architectures; do 
            repopath="/build/repo/eurolinux/$version/prod/$reponame/$architecture/os/"
            treeinfo_path="/build/repo/eurolinux/$version/prod/$reponame/$architecture/os/.treeinfo"
            echo "-> Checking if repopath $repopath exists"
            repopath_exists=0
            [ -d $repopath ] && repopath_exists=1
            if [ $repopath_exists -eq 1 ]; then
                echo -e "\t-> path $repopath exists creating .treeinfo"
            else
                echo -e "\t-> path $repopath does NOT exists... skipping"
            fi
        done
    done 
done


