Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
349 B
1
Indexable
Never
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