Skip to content

Commit

Permalink
updated database.sh to be root directory dynamic
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelocalves21 committed Aug 11, 2022
1 parent e261737 commit b6c9825
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion database.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,14 @@ migrate_upgrade ()
pipenv run upgrade
}

dir=$(pwd)

if [ ! -d /workspace/react-flask-hello/migrations ]
if [ ! -d $dir/migrations ]
then
echo 'creating migration'
creating_migration
else
echo 'migrations already created'
echo 'updating migrations'
migrate_upgrade
fi

0 comments on commit b6c9825

Please sign in to comment.