Files
GitJournal/scripts/reload.sh
Vishesh Handa a065cd3ec8 Improve flutter_run script
* Display a longer message when reloading - It's easier to see
* Make flutter_run start the reload script and kill it automatically.
This is always the behaviour I want when running an app via flutter run.
2019-05-02 00:19:45 +02:00

11 lines
149 B
Bash
Executable File

#!/usr/bin/env bash
cd "$(dirname "$0")"
cd ../
while true
do
find lib/ -name '*.dart' | \
entr -d -p ./scripts/reload_run_app.sh
done