Untitled

 avatar
unknown
plain_text
4 years ago
349 B
4
Indexable
echo "Creating __init__.py files"


for file in *
do
  echo $file
  if [ -d $file ]; then
    echo "Entering directory" $file
    cd $file
    for file2 in *
    do
      if [ $file2 = migrations ] ; then
        cd migrations
        echo "entering migrations in "$file
        touch __init__.py
        cd ..
      fi
    done
    cd ..
  fi
done
Editor is loading...